Class: ActiveSupport::Cache::DRbStore
- Inherits:
-
MemoryStore
- Object
- Store
- MemoryStore
- ActiveSupport::Cache::DRbStore
- Defined in:
- lib/active_support/cache/drb_store.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Attributes inherited from Store
Instance Method Summary collapse
-
#initialize(address = 'druby://localhost:9192') ⇒ DRbStore
constructor
A new instance of DRbStore.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/active_support/cache/drb_store.rb', line 4 def address @address end |