# File tokyotyrant.rb, line 1200 def get(pkey) pkey = _argstr(pkey) args = Array::new args.push(pkey) rv = misc("get", args) if !rv @ecode = ENOREC if @ecode == EMISC return nil end cols = Hash::new() cnum = rv.length cnum -= 1 i = 0 while i < cnum cols[rv[i]] = rv[i+1] i += 2 end return cols end