featherdb-redis
v0.0.4
Published
A Redis that is utilized with Axion functions like OysterDB and Hyberview.
Downloads
3
Readme
featherdb-redis
A Redis that is utilized with Axion functions like OysterDB and Hyberview.
const featherdb = require('featherdb');
const oyster = new featherdb.Oyster({
url: "redis://127.0.0.1:6379",
prefix: "none"
});
const hyperview = new featherdb.Hyperview({
url: "redis://127.0.0.1:6378",
prefix: "none"
});
OYSTER
Example Call
oyster.call('add_block',{
_label: 'comments',
_id: '12345',
_hosts: ['school:019029'],
_members: ['hoppies:039049'],
fullname: 'bahi hussein abdel baset',
lastname: 'ismail',
label: 'vodo',
hoppies: 'flying',
ok: ['3', '3', '3', '123'],
tom: {
cort: {
r: 0.123,
x: 'will be deleted'
}
},
experince: {
dog_years: 154
}
})
{
"_label":"comments",
"_id":"comments:123",
"fullname":"bahi hussein abdel baset",
"lastname":"ismail",
"label":"vodo",
"hoppies":"flying",
"ok":"["3","3","3","123"]",
"tom":{
"cort":{
"r":"0.123",
"x":"will be deleted"
}
},
"experince":{
"dog_years":"154"
}
}