Class: ActiveSupport::Cache::DRbStore

Inherits:
MemoryStore show all
Defined in:
lib/active_support/cache/drb_store.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from MemoryStore

#clear, #delete, #delete_matched, #exist?, #read, #write

Methods inherited from Store

#decrement, #delete, #delete_matched, #exist?, #fetch, #increment, #read, #threadsafe!, #write

Constructor Details

#initialize(address = 'druby://localhost:9192') ⇒ DRbStore

Returns a new instance of DRbStore.



8
9
10
11
12
# File 'lib/active_support/cache/drb_store.rb', line 8

def initialize(address = 'druby://localhost:9192')
  super()
  @address = address
  @data = DRbObject.new(nil, address)
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



6
7
8
# File 'lib/active_support/cache/drb_store.rb', line 6

def address
  @address
end