Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Stephens committed Aug 14, 2013
1 parent 3b4e8b0 commit 3736616
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
@@ -1,6 +1,6 @@
# WithTimedCache

TODO: Write a gem description
A simple, time-based cache.

## Installation

Expand All @@ -18,12 +18,13 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
with_timed_cache(key, max_age: 1.hour) do
# some operation you would like cached for a certain amount of time
end

## Contributing
**Options**

* `max_age`: how long to use the cached data, ex: `30.minutes`
* `location`: the directory path in which to store cache files
* `format`: cache data may be persisted as `:json`, `:yaml`, or the default of marshaling objects to strings will be used.

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

0 comments on commit 3736616

Please sign in to comment.