small library to use redis + arbitrary objects (serialized in json)
strings
R[:foo] # nil
R[:foo] = "bar"
R[:foo] # bar
and more!
R[:foo] = ["f", "o", "o"]
R[:foo] # ["f", "o", "o"]
As you can see, it serializes and deserializes JSON arrays, and...
R[:foo] = { foo: "bar" }
R[:foo] # { foo: "bar" }
...objects
and the implementation is really few lines of code, because it's composing two simple things, redis and json together!