metasploit-framework/lib/active_support/cache/drb_store.rb

15 lines
327 B
Ruby
Raw Normal View History

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