Class: ActionController::Caching::Fragments::MemCacheStore
- Inherits:
-
MemoryStore
- Object
- UnthreadedMemoryStore
- MemoryStore
- ActionController::Caching::Fragments::MemCacheStore
- Defined in:
- lib/action_controller/caching.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#addresses ⇒ Object
readonly
Returns the value of attribute addresses.
Instance Method Summary collapse
-
#initialize(*addresses) ⇒ MemCacheStore
constructor
A new instance of MemCacheStore.
Methods inherited from UnthreadedMemoryStore
#delete, #delete_matched, #read, #write
Constructor Details
#initialize(*addresses) ⇒ MemCacheStore
Returns a new instance of MemCacheStore.
458 459 460 461 462 463 464 |
# File 'lib/action_controller/caching.rb', line 458 def initialize(*addresses) super() addresses = addresses.flatten addresses = ["localhost"] if addresses.empty? @addresses = addresses @data = MemCache.new(*addresses) end |
Instance Attribute Details
#addresses ⇒ Object (readonly)
Returns the value of attribute addresses.
456 457 458 |
# File 'lib/action_controller/caching.rb', line 456 def addresses @addresses end |