RubyRedis: Array alike operators implemented

This commit is contained in:
antirez 2009-05-20 17:34:20 +02:00
parent cd71a5705d
commit ad0ea27c83

View File

@ -51,6 +51,14 @@ class RedisClient
raise "SELECT not allowed, use the :db option when creating the object"
end
def [](key)
get(key)
end
def []=(key,value)
set(key,value)
end
def read_reply
line = @sock.gets
case line[0..0]