Class: Wrest::CacheProxy

Inherits:
Object
  • Object
show all
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



5
6
7
8
9
10
11
# File 'lib/wrest/cache_proxy.rb', line 5

def new(get, cache_store)
  if cache_store
    DefaultCacheProxy.new(get, cache_store)
  else
    NullCacheProxy.new(get)
  end
end