Module: Padrino::Cache::Helpers::CacheStore

Defined in:
padrino-cache/lib/padrino-cache/helpers/cache_store.rb

Instance Method Summary collapse

Instance Method Details

#expire(*key) ⇒ Object



5
6
7
8
9
10
11
12
# File 'padrino-cache/lib/padrino-cache/helpers/cache_store.rb', line 5

def expire(*key)
  if key.size == 1 and (key.first.is_a?(String) or key.first.is_a?(Symbol))
    settings.cache.delete(key.first)
  else
    settings.cache.delete(self.class.url(*key))
  end
  nil
end