Module: Lux::Cache::NullCache
Instance Method Summary collapse
- #delete(key) ⇒ Object
- #fetch(key, ttl = nil) ⇒ Object
- #get(key) ⇒ Object
- #get_multi(*args) ⇒ Object
- #set(key, data, ttl = nil) ⇒ Object
Instance Method Details
#delete(key) ⇒ Object
16 17 18 |
# File 'lib/lux/cache/lib/null.rb', line 16 def delete(key) nil end |
#fetch(key, ttl = nil) ⇒ Object
12 13 14 |
# File 'lib/lux/cache/lib/null.rb', line 12 def fetch(key, ttl=nil) yield end |
#get(key) ⇒ Object
8 9 10 |
# File 'lib/lux/cache/lib/null.rb', line 8 def get(key) nil end |
#get_multi(*args) ⇒ Object
20 21 22 |
# File 'lib/lux/cache/lib/null.rb', line 20 def get_multi(*args) {} end |
#set(key, data, ttl = nil) ⇒ Object
4 5 6 |
# File 'lib/lux/cache/lib/null.rb', line 4 def set(key, data, ttl=nil) data end |