Module: ActiveSP::Caching::InstanceMethods

Defined in:
lib/activesp/caching.rb

Instance Method Summary collapse

Instance Method Details

#clear_cache_for(name) ⇒ Object



34
35
36
37
# File 'lib/activesp/caching.rb', line 34

def clear_cache_for(name)
  instance_variable_set("@#{name}", nil) # Make sure it is defined first... Dirty, right?
  remove_instance_variable("@#{name}")
end