README.md in perforated-0.8.2 vs README.md in perforated-0.9.0
- old
+ new
@@ -115,15 +115,15 @@
However, if you are just serializing models or objects that don't have a custom
cache method you can provide a custom key caching strategy.
```ruby
module CustomStrategy
- def self.expand_cache_key(object, suffix)
- [object.id, object.updated_at, suffix].join('/')
+ def self.expand_cache_key(object)
+ [object.id, object.updated_at].join('/')
end
end
-perforated = Perforated::Cache.new(array, CustomStrategy)
+perforated = Perforated.new(array, CustomStrategy)
```
## Installation
Add this line to your application's Gemfile: