public
Description: TokyoTyrant network protocol for Ruby
Clone URL: git://github.com/yrashk/tokyotyrant.rb.git
Search Repo:
Database#each_key has been added
yrashk (author)
Thu Jul 10 10:18:24 -0700 2008
commit  2ffdc3fa20da90856a23a0fa730dc2d8911a4b67
tree    a6384be79da14edb629da02355852b4f82218ce9
parent  0a22ab664409e94bdcdd3f432eacf03768e1507b
...
79
80
81
 
 
 
 
 
 
82
83
84
...
79
80
81
82
83
84
85
86
87
88
89
90
0
@@ -79,6 +79,12 @@ module TokyoTyrant
0
       @socket.read(len)
0
     end
0
     
0
+ def each_key
0
+ iterinit
0
+ yield(iternext) while true
0
+ rescue
0
+ end
0
+
0
     def fwmkeys(prefix, max) # max should allow negative values, but it does not
0
       cmd = [0xc8,0x58].pack('C2') + [prefix.length,max].pack('N2') + prefix
0
       @socket.write(cmd)

Comments

    No one has commented yet.