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(*addresses) ⇒ MemCacheStore

Returns a new instance of MemCacheStore.


395
396
397
398
399
400
401
# File 'lib/action_controller/caching.rb', line 395

def initialize(*addresses)
  super()
  addresses = addresses.flatten
  addresses = ["localhost"] if addresses.empty?
  @addresses = addresses
  @data = MemCache.new(*addresses)
end

Instance Attribute Details

#addressesObject (readonly)

Returns the value of attribute addresses


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

def addresses
  @addresses
end