Skip to content

tafa/node-abstract-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datastore Types

kv
    .{get,set,del}

jv
    like kv, but the keys get keyjson {en,de}coded

{k,j}v_big
    like {k,j}v, but also with .{get,set}Big
    Example: S3
    Example: jvr with a chunking/unchunking wrapper

{k,j}vr
    like {k,j}v, but also with {get,set}{,Big}Range
    Examples: Tokyo Tyrant, Cassandra

redis
    offers everything that Redis 2.2 does
    behaves like mranney's [node_redis](https://github.com/mranney/node_redis)
    Example: Redis 2.2

Functions

Conventions:
    
    v: (Buffer) or (unicode string to be UTF-8 encoded)
    k:
        for {kv,kvr,big_kv}: see v
        for j*: any keyjson-supported value

.get k
.set k, v
.del k

res = .getBig(k)      res.on {data,end}
req = .setBig(k)      req.{write,end}

.getRange: TODO
.setRange: TODO
.getBigRange: TODO
.setBigRange: TODO

.incr(k)
.incrby(k, n)
.decr(k)
.decrby(k, n)
...

Datastore Wrappers

WrapRedis(redis_conn, {prefix: "", keyjson: false})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published