Module: CaChing::WriteThrough
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ca_ching/write_through.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#destroy_with_cache ⇒ Object
22 23 24 25 26 27 |
# File 'lib/ca_ching/write_through.rb', line 22 def destroy_with_cache(*) return destroy_without_cache if CaChing.cache.nil? || CaChing.disabled? CaChing.cache.destroy(self) destroy_without_cache end |