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