Skip to content

small library to use redis as JSON datastore for objects (serialized in json via Oj)

Notifications You must be signed in to change notification settings

makevoid/redijson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RediJson

small library to use redis + arbitrary objects (serialized in json)

API / Usage

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!

About

small library to use redis as JSON datastore for objects (serialized in json via Oj)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages