0.0.1 • Published 5 years ago
sharedb-redis-adapter v0.0.1
sharedb-redis
Redis database adapter for sharedb
ops
are stored as sharedb:ops:{collection}:{id}
and use the type Sorted Set.
snapshot
is stored as sharedb:snapshot:{collection}:{id}
and uses the generic type.
Usage
npm require sharedb-redis
const RedisDatabase = require('sharedb-redis')
const db = new RedisDatabase({
host: '127.0.0.1',
port: 6379
})
const sharedb = new Sharedb({ db })
Tests
npm run test
0.0.1
5 years ago