Method: Cash::Index::Commands#delete

Defined in:
lib/cash/index.rb

#delete(object) ⇒ Object



41
42
43
44
45
# File 'lib/cash/index.rb', line 41

def delete(object)
  old_attribute_value_pairs, _ = old_and_new_attribute_value_pairs(object)
  key = cache_key(old_attribute_value_pairs)
  expire(key)
end