Class: Card::Rule::Cache
- Inherits:
-
Object
show all
- Defined in:
- lib/card/rule/cache.rb
Class Method Summary
collapse
Class Method Details
.clear ⇒ Object
35
36
37
|
# File 'lib/card/rule/cache.rb', line 35
def clear
Card.cache.write cache_key, nil
end
|
.populate ⇒ Object
31
32
33
|
# File 'lib/card/rule/cache.rb', line 31
def populate
Card.cache.write cache_key, lookup_hash
end
|
.read ⇒ Object
27
28
29
|
# File 'lib/card/rule/cache.rb', line 27
def read
Card.cache.read(cache_key) || populate
end
|