Sha256: ad7d906ff965baf25762bbc495bf32a4cd31f350668f6fa8fca83f6611124f65

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

require 'rubygems'
require 'rufus/tokyo'

db = Rufus::Tokyo::Cabinet.new('data.tch')

db['nada'] = 'surf'

p db['nada'] # => 'surf'
p db['lost'] # => nil

5000.times { |i| db[i.to_s] = "x" }

p db.inject { |r, (k, v)| k } # => 4999

db.close

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rufus-tokyo-1.0.7 test/readme0.rb
rufus-tokyo-1.0.6 test/readme0.rb
rufus-tokyo-1.0.5 test/readme0.rb
rufus-tokyo-1.0.4 test/readme0.rb
metry-1.0.0 vendor/rufus-tokyo/test/readme0.rb
metry-1.0.1 vendor/rufus-tokyo/test/readme0.rb
metry-1.1.0 vendor/rufus-tokyo/test/readme0.rb
metry-1.2.0 vendor/rufus-tokyo/test/readme0.rb