aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache/drb_store.rb
blob: b16ed25aa3b5b76f40fb076e402933b7e1de1e1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module ActiveSupport
  module Cache
    class DRbStore < MemoryStore #:nodoc:
      attr_reader :address

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