Class: Innate::Cache::Memory
- Inherits:
-
Hash
- Object
- Hash
- Innate::Cache::Memory
show all
- Includes:
- API
- Defined in:
- lib/innate/cache/memory.rb
Overview
Memory cache is simply a Hash with the Cache::API, it’s the reference implementation for every other cache and the default cache.
Instance Method Summary
collapse
Methods included from API
#cache_clear, #cache_setup
Instance Method Details
#cache_delete(*args) ⇒ Object
16
17
18
|
# File 'lib/innate/cache/memory.rb', line 16
def cache_delete(*args)
super{|key| delete(key) }
end
|
#cache_fetch(*args) ⇒ Object
12
13
14
|
# File 'lib/innate/cache/memory.rb', line 12
def cache_fetch(*args)
super{|key| self[key] }
end
|
#cache_store(*args) ⇒ Object
8
9
10
|
# File 'lib/innate/cache/memory.rb', line 8
def cache_store(*args)
super{|key, value| self[key] = value }
end
|