Sha256: b04aec26c74d02abc36cc5a15197c10da3793d432ae3d844be1625c866b5e305

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

require 'glue/cache/drb'
require 'nitro/session'

module Nitro

Logger.info "Using DRb sessions at #{Glue::DrbCache.address}:#{Glue::DrbCache.port}." if defined?(Logger) && $DBG

class Session < Hash
  
  # The address of the Drb store.
  
  setting :cache_address, :default => '127.0.0.1', :doc => 'The address of the Drb store'

  # The port of the Drb store.
  
  setting :cache_port, :default => 9069, :doc => 'The port of the Drb store'

end

Session.cache = Glue::DrbCache.new

end

# * George Moschovitis  <gm@navel.gr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.30.0 lib/nitro/session/drb.rb
nitro-0.31.0 lib/nitro/session/drb.rb