Method: ActiveRestClient::Caching::ClassMethods#cache_store=
- Defined in:
- lib/active_rest_client/caching.rb
#cache_store=(value) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/active_rest_client/caching.rb', line 23 def cache_store=(value) @@cache_store = nil if value.nil? and return raise InvalidCacheStoreException.new("Cache store does not implement #read") unless value.respond_to?(:read) raise InvalidCacheStoreException.new("Cache store does not implement #write") unless value.respond_to?(:write) raise InvalidCacheStoreException.new("Cache store does not implement #fetch") unless value.respond_to?(:fetch) @@cache_store = value end |