Class: Rack::Attack::StoreProxy::MemCacheStoreProxy
- Inherits:
-
BaseProxy
- Object
- SimpleDelegator
- BaseProxy
- Rack::Attack::StoreProxy::MemCacheStoreProxy
show all
- Defined in:
- lib/rack/attack/store_proxy/mem_cache_store_proxy.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseProxy
inherited, lookup, proxies
Class Method Details
.handle?(store) ⇒ Boolean
9
10
11
12
13
|
# File 'lib/rack/attack/store_proxy/mem_cache_store_proxy.rb', line 9
def self.handle?(store)
defined?(::Dalli) &&
defined?(::ActiveSupport::Cache::MemCacheStore) &&
store.is_a?(::ActiveSupport::Cache::MemCacheStore)
end
|
Instance Method Details
#read(name, options = {}) ⇒ Object
15
16
17
|
# File 'lib/rack/attack/store_proxy/mem_cache_store_proxy.rb', line 15
def read(name, options = {})
super(name, options.merge!(raw: true))
end
|
#write(name, value, options = {}) ⇒ Object
19
20
21
|
# File 'lib/rack/attack/store_proxy/mem_cache_store_proxy.rb', line 19
def write(name, value, options = {})
super(name, value, options.merge!(raw: true))
end
|