Module: Fino::Cache
- Included in:
- Memory
- Defined in:
- lib/fino/cache.rb
Defined Under Namespace
Classes: Memory
Instance Method Summary collapse
- #clear ⇒ Object
- #delete(key) ⇒ Object
- #exist?(key) ⇒ Boolean
- #fetch(key) ⇒ Object
- #fetch_multi(*keys) ⇒ Object
- #read(key) ⇒ Object
- #write(key, value) ⇒ Object
Instance Method Details
#clear ⇒ Object
28 29 30 |
# File 'lib/fino/cache.rb', line 28 def clear raise NotImplementedError end |
#delete(key) ⇒ Object
24 25 26 |
# File 'lib/fino/cache.rb', line 24 def delete(key) raise NotImplementedError end |
#exist?(key) ⇒ Boolean
4 5 6 |
# File 'lib/fino/cache.rb', line 4 def exist?(key) raise NotImplementedError end |
#fetch(key) ⇒ Object
16 17 18 |
# File 'lib/fino/cache.rb', line 16 def fetch(key, &) raise NotImplementedError end |
#fetch_multi(*keys) ⇒ Object
20 21 22 |
# File 'lib/fino/cache.rb', line 20 def fetch_multi(*keys, &) raise NotImplementedError end |
#read(key) ⇒ Object
8 9 10 |
# File 'lib/fino/cache.rb', line 8 def read(key) raise NotImplementedError end |
#write(key, value) ⇒ Object
12 13 14 |
# File 'lib/fino/cache.rb', line 12 def write(key, value) raise NotImplementedError end |