Class: ActiveSupport::Cache::DRbStore

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

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Store

#logger_off, #silence

Instance Method Summary collapse

Methods inherited from MemoryStore

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

Methods inherited from Store

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

Constructor Details

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

Returns a new instance of DRbStore.



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

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

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



4
5
6
# File 'lib/active_support/cache/drb_store.rb', line 4

def address
  @address
end