2008-05-18 06:22:34 +02:00
|
|
|
module ActiveSupport
|
|
|
|
module Cache
|
|
|
|
class DRbStore < MemoryStore #:nodoc:
|
|
|
|
attr_reader :address
|
|
|
|
|
|
|
|
def initialize(address = 'druby://localhost:9192')
|
2009-02-04 21:26:08 +01:00
|
|
|
require 'drb' unless defined?(DRbObject)
|
2008-05-18 06:22:34 +02:00
|
|
|
super()
|
|
|
|
@address = address
|
|
|
|
@data = DRbObject.new(nil, address)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2009-02-04 21:26:08 +01:00
|
|
|
end
|