Class: Wrest::CacheProxy
- Inherits:
-
Object
- Object
- Wrest::CacheProxy
- Defined in:
- lib/wrest/cache_proxy.rb
Defined Under Namespace
Classes: DefaultCacheProxy, NullCacheProxy
Class Method Summary collapse
Class Method Details
.new(get, cache_store) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/wrest/cache_proxy.rb', line 6 def new(get, cache_store) if cache_store DefaultCacheProxy.new(get, cache_store) else NullCacheProxy.new(get) end end |