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.
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, #write
Methods inherited from Store
#decrement, #delete, #delete_matched, #exist?, #fetch, #increment, #read, #silence!, #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
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'lib/active_support/cache/drb_store.rb', line 6 def address @address end |