Remove the object from the cache when updating
# File lib/sequel/plugins/caching.rb, line 121 def before_update cache_delete super end
Return a key unique to the underlying record for caching, based on the primary key value(s) for the object. If the model does not have a primary key, raise an Error.
# File lib/sequel/plugins/caching.rb, line 129 def cache_key model.cache_key(pk) end
Remove the object from the cache when deleting
# File lib/sequel/plugins/caching.rb, line 134 def delete cache_delete super end
Delete this object from the cache
# File lib/sequel/plugins/caching.rb, line 142 def cache_delete model.cache_delete_pk(pk) end