Module Sequel::Plugins::Caching::InstanceMethods
In: lib/sequel/plugins/caching.rb

Methods

Public Instance methods

Remove the object from the cache when updating

[Source]

     # File lib/sequel/plugins/caching.rb, line 121
121:         def before_update
122:           cache_delete
123:           super
124:         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.

[Source]

     # File lib/sequel/plugins/caching.rb, line 129
129:         def cache_key
130:           model.cache_key(pk)
131:         end

Remove the object from the cache when deleting

[Source]

     # File lib/sequel/plugins/caching.rb, line 134
134:         def delete
135:           cache_delete
136:           super
137:         end

[Validate]