Module: RPCMapper::Cacheable::ClassMethods
- Defined in:
- lib/rpc_mapper/cacheable.rb
Constant Summary collapse
- DEFAULT_LONGEVITY =
TRP: Default to a 5 minute cache
5*60
- @@cache_store =
nil
Instance Method Summary collapse
Instance Method Details
#cache_store ⇒ Object
17 18 19 |
# File 'lib/rpc_mapper/cacheable.rb', line 17 def cache_store @@cache_store end |
#reset_cache_store(default_longevity = DEFAULT_LONGEVITY) ⇒ Object
13 14 15 |
# File 'lib/rpc_mapper/cacheable.rb', line 13 def reset_cache_store(default_longevity=DEFAULT_LONGEVITY) @@cache_store = RPCMapper::Cacheable::Store.new(default_longevity) end |