Sha256: 2411ec1d26f4e7c840852f9b14ed28954fa8a3fa5388187c5b3ab924eda9e459

Contents?: true

Size: 532 Bytes

Versions: 16

Compression:

Stored size: 532 Bytes

Contents

require 'tokyotyrant'
require 'tyrant_rdb_key_store'
module Monkeyshines
  module Store
    #
    # Implementation of KeyStore with a Local TokyoCabinet Table database (RDBTBL)
    #
    class TyrantRdbKeyStore < TyrantRdbKeyStore Monkeyshines::Store::KeyStore

      def db
        return @db if @db
        @db ||= TokyoTyrant::RDBTBL.new
        @db.open(db_host, db_port) or raise("Can't open DB #{db_host}:#{db_port}. Pass in host:port' #{@db.ecode}: #{@db.errmsg(@db.ecode)}")
        @db
      end

    end #class
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
wukong-3.0.0.pre old/wukong/store/tyrant_tdb_key_store.rb
wukong-2.0.2 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-2.0.1 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-2.0.0 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.5.4 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.5.3 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.5.2 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.5.1 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.5.0 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.4.12 lib/wukong/store/tyrant_tdb_key_store.rb
wukong-1.4.11 lib/wukong/store/tyrant_tdb_key_store.rb
monkeyshines-0.2.3 lib/monkeyshines/store/tyrant_tdb_key_store.rb
monkeyshines-0.2.2 lib/monkeyshines/store/tyrant_tdb_key_store.rb
monkeyshines-0.2.1 lib/monkeyshines/store/tyrant_tdb_key_store.rb
monkeyshines-0.2.0 lib/monkeyshines/store/tyrant_tdb_key_store.rb
monkeyshines-0.0.2 lib/monkeyshines/store/tyrant_tdb_key_store.rb