Method: Itrigga::Cache::ClassMethods#delete_from_cache
- Defined in:
- lib/itrigga/cache/cache.rb
#delete_from_cache(key, opts = {}) ⇒ Object
138 139 140 141 142 143 144 145 146 |
# File 'lib/itrigga/cache/cache.rb', line 138 def delete_from_cache(key, opts = {}) return nil unless caching_enabled?(opts) begin cache_log "Deleting key #{key}", opts Itrigga::Cache.instance(opts).delete key rescue Exception => e nil end end |