Class Index [+]

Quicksearch

Sequel::Plugins::Caching::InstanceMethods

Public Instance Methods

before_update() click to toggle source

Remove the object from the cache when updating

     # File lib/sequel/plugins/caching.rb, line 128
128:         def before_update
129:           cache_delete
130:           super
131:         end
cache_key() click to toggle source

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 136
136:         def cache_key
137:           model.cache_key(pk)
138:         end
delete() click to toggle source

Remove the object from the cache when deleting

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

Private Instance Methods

cache_delete() click to toggle source

Delete this object from the cache

     # File lib/sequel/plugins/caching.rb, line 149
149:         def cache_delete
150:           model.cache_delete_pk(pk)
151:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.