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 126
126:         def before_update
127:           cache_delete
128:           super
129:         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 134
134:         def cache_key
135:           model.cache_key(pk)
136:         end

Remove the object from the cache when deleting

[Source]

     # File lib/sequel/plugins/caching.rb, line 139
139:         def delete
140:           cache_delete
141:           super
142:         end

[Validate]