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