Skip to content

Commit

Permalink
Correct README (#2)
Browse files Browse the repository at this point in the history
What
===
Change the use of `put` in the example in the README to `set`.

Why
===
There is no method `put` on `FileCache`, but there is 'set'.
  • Loading branch information
splaspood authored and leighmcculloch committed Jul 22, 2016
1 parent 283bdec commit 9e9c11f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ puts cache.get(:key) # nil
# with an expiry time of 30 seconds, and a file hierarchy three
# directories deep
cache = FileCache.new("my-cache", "/home/simon/caches", 30, 3)
cache.put("joe", "bloggs")
cache.set("joe", "bloggs")
puts(cache.get("joe")) # "bloggs"
sleep 30
puts(cache.get("joe")) # nil
```

[rubyforge-filecache]: http://rubyforge.org/projects/filecache/
[rubyforge-filecache]: http://rubyforge.org/projects/filecache/

0 comments on commit 9e9c11f

Please sign in to comment.