aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache/drb_store.rb
blob: f06f08f566bf7be13d454ddf60d00a8a2b4f28f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'drb'
require 'active_support/cache/memory_store'

module ActiveSupport
  module Cache
    class DRbStore < MemoryStore #:nodoc:
      attr_reader :address

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