Class: Poros::Query::Cache
- Inherits:
-
Object
- Object
- Poros::Query::Cache
- Defined in:
- lib/poros/query/cache.rb
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
5 6 7 |
# File 'lib/poros/query/cache.rb', line 5 def [](key) cache[key] end |
.[]=(key, value) ⇒ Object
9 10 11 |
# File 'lib/poros/query/cache.rb', line 9 def []=(key, value) cache[key] = value end |
.cache ⇒ Object
13 14 15 |
# File 'lib/poros/query/cache.rb', line 13 def cache @cache ||= {} end |
.clear ⇒ Object
17 18 19 |
# File 'lib/poros/query/cache.rb', line 17 def clear @cache = {} end |