simple_cacheable
simple_cacheable copied to clipboard
a simple cache implementation for rails
For AR object keys https://github.com/rails/globalid
Unnessary sql calls for nil objects that will continue to be nil until the host object is updated. This is more a problem with memoization then caching. Will need to...
``` user1 = User.new(attributes) user1.cached_method #=> data user2 = User.new(diff_attributes) user2.cached_method #=> user1's data ``` When an object isn't persisted, it doens't have a fully formed cache key, so it...