README.md in simple_cacheable-1.4.1 vs README.md in simple_cacheable-1.5.0
- old
+ new
@@ -61,9 +61,19 @@
model_cache do
with_association :commentable # comment.cached_commentable
end
end
+Advanced Usage
+--------------
+
+````ruby
+ # Utilize Simple Cacheable to cache ActiveRecord objects without marshalling errors
+ Cacheable.fetch "collection_of_twelve_users", expires_in: 1.day do
+ User.limit(12)
+ end
+````
+
Install
-------
add the following code to your Gemfile