Remove the object from the cache when updating
[Source]
# File lib/sequel/plugins/caching.rb, line 134 134: def before_update 135: cache_delete 136: super 137: 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 142 142: def cache_key 143: model.cache_key(pk) 144: end
Remove the object from the cache when deleting
# File lib/sequel/plugins/caching.rb, line 147 147: def delete 148: cache_delete 149: super 150: end
[Validate]