Class: ActionController::Caching::Fragments::MemCacheStore

Inherits:
MemoryStore show all
Defined in:
lib/action_controller/caching.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from UnthreadedMemoryStore

#delete, #delete_matched, #read, #write

Constructor Details

#initialize(address = 'localhost') ⇒ MemCacheStore

Returns a new instance of MemCacheStore.



394
395
396
397
398
# File 'lib/action_controller/caching.rb', line 394

def initialize(address = 'localhost')
  super()
  @address = address
  @data = MemCache.new(address)
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



392
393
394
# File 'lib/action_controller/caching.rb', line 392

def address
  @address
end