Class: Kashmir::Caching::Null
- Inherits:
-
Object
- Object
- Kashmir::Caching::Null
- Defined in:
- lib/kashmir/plugins/null_caching.rb
Instance Method Summary collapse
- #bulk_from_cache(definitions, instances) ⇒ Object
- #bulk_write(representation_definition, representations, objects, ttl) ⇒ Object
- #clear(definition, instance) ⇒ Object
- #flush! ⇒ Object
- #from_cache(definitions, instance) ⇒ Object
- #get(key) ⇒ Object
- #keys ⇒ Object
- #presenter_key(definition_name, instance) ⇒ Object
- #set(key, value) ⇒ Object
- #store_presenter(definitions, representation, instance, black_list = [], ttl = 0) ⇒ Object
Instance Method Details
#bulk_from_cache(definitions, instances) ⇒ Object
11 12 13 |
# File 'lib/kashmir/plugins/null_caching.rb', line 11 def bulk_from_cache(definitions, instances) [] end |
#bulk_write(representation_definition, representations, objects, ttl) ⇒ Object
18 19 |
# File 'lib/kashmir/plugins/null_caching.rb', line 18 def bulk_write(representation_definition, representations, objects, ttl) end |
#clear(definition, instance) ⇒ Object
31 32 |
# File 'lib/kashmir/plugins/null_caching.rb', line 31 def clear(definition, instance) end |
#flush! ⇒ Object
34 35 |
# File 'lib/kashmir/plugins/null_caching.rb', line 34 def flush! end |
#from_cache(definitions, instance) ⇒ Object
7 8 9 |
# File 'lib/kashmir/plugins/null_caching.rb', line 7 def from_cache(definitions, instance) nil end |
#get(key) ⇒ Object
25 26 |
# File 'lib/kashmir/plugins/null_caching.rb', line 25 def get(key) end |
#keys ⇒ Object
37 38 39 |
# File 'lib/kashmir/plugins/null_caching.rb', line 37 def keys [] end |
#presenter_key(definition_name, instance) ⇒ Object
21 22 23 |
# File 'lib/kashmir/plugins/null_caching.rb', line 21 def presenter_key(definition_name, instance) "presenter:#{instance.class}:#{instance.id}:#{definition_name}" end |
#set(key, value) ⇒ Object
28 29 |
# File 'lib/kashmir/plugins/null_caching.rb', line 28 def set(key, value) end |
#store_presenter(definitions, representation, instance, black_list = [], ttl = 0) ⇒ Object
15 16 |
# File 'lib/kashmir/plugins/null_caching.rb', line 15 def store_presenter(definitions, representation, instance, black_list=[], ttl=0) end |