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
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize(address = 'localhost') ⇒ MemCacheStore
constructor
A new instance of MemCacheStore.
Methods inherited from UnthreadedMemoryStore
#delete, #delete_matched, #read, #write
Constructor Details
#initialize(address = 'localhost') ⇒ MemCacheStore
Returns a new instance of MemCacheStore.
395 396 397 398 399 |
# File 'lib/action_controller/caching.rb', line 395 def initialize(address = 'localhost') super() @address = address @data = MemCache.new(address) end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
393 394 395 |
# File 'lib/action_controller/caching.rb', line 393 def address @address end |