redis-json
Advanced tools
Comparing version 1.0.0 to 1.0.1
31
index.js
@@ -59,33 +59,2 @@ | ||
if (require.main == module) { | ||
var Redis = require('ioredis'); | ||
var redis = new Redis({ | ||
host: 'localhost', | ||
port: 6379, | ||
password: '', | ||
db: 0, | ||
family: 4 | ||
}) | ||
var jsonStore = new JSONStore(redis); | ||
jsonStore.set('user', { | ||
name: 'akash', | ||
age: 21, | ||
address: { | ||
street: 21, | ||
place: 'Bangalore', | ||
state: 'Karnataka', | ||
country: 'India' | ||
} | ||
}, function (err, result) { | ||
console.log(err, result); | ||
jsonStore.get('user', function (err, result) { | ||
console.log(err, result); | ||
}); | ||
}) | ||
} | ||
module.exports = JSONStore; | ||
@@ -92,0 +61,0 @@ |
{ | ||
"name": "redis-json", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A wrapper library to store JSON Objects in redis-hashsets and retrieve it back as JSON objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4130
4
0
71
71