Class: KB::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/kb/cache.rb

Class Method Summary collapse

Class Method Details

.delete(key) ⇒ Object



4
5
6
# File 'lib/kb/cache.rb', line 4

def delete(key)
  instance.delete(key)
end

.fetch(key, &block) ⇒ Object



8
9
10
# File 'lib/kb/cache.rb', line 8

def fetch(key, &block)
  instance.fetch(key, expires_in: cache_expiration, &block)
end