Class Moneta::Shared
In: lib/moneta/shared.rb
Parent: Wrapper

Shares a store between processes

@example Share a store

  Moneta.build do
    use :Transformer, :key => :marshal, :value => :marshal
    use :Shared do
      adapter :GDBM, :file => 'shared.db'
    end
  end

@api public

Methods

close   connect   new   start_server   wrap  

Public Class methods

@param [Hash] options @option options [Integer] :port (9000) TCP port @option options [String] :host Server hostname @option options [String] :socket Unix socket file name

Public Instance methods

Protected Instance methods

TODO: Implement this using forking (MRI) and threading (JRuby) to get maximal performance

[Validate]