catbox-redis
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -22,3 +22,3 @@ // Load modules | ||
this.settings = Hoek.applyToDefaults(internals.defaults, options || {}); | ||
this.settings = Hoek.applyToDefaults(internals.defaults, options); | ||
this.client = null; | ||
@@ -25,0 +25,0 @@ return this; |
{ | ||
"name": "catbox-redis", | ||
"description": "Redis adapter for catbox", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -21,7 +21,7 @@ "contributors": [ | ||
"redis": "0.10.x", | ||
"hoek": "1.x.x" | ||
"hoek": "2.x.x" | ||
}, | ||
"devDependencies": { | ||
"catbox": "2.x.x", | ||
"lab": "1.x.x" | ||
"lab": "3.x.x" | ||
}, | ||
@@ -28,0 +28,0 @@ "scripts": { |
@@ -10,4 +10,4 @@ catbox-redis | ||
- `host` - the Redis server hostname. Defaults to `'127.0.0.1'`. | ||
- `port` - the Redis server port. Defaults to `6379`. | ||
- `port` - the Redis server port or unix domain socket path. Defaults to `6379`. | ||
- `password` - the Redis authentication password when required. | ||
@@ -552,3 +552,3 @@ // Load modules | ||
it('passes an error to the callback when there is an error with the envelope structure', function (done) { | ||
it('passes an error to the callback when there is an error with the envelope structure (stored)', function (done) { | ||
@@ -576,2 +576,25 @@ var options = { | ||
it('passes an error to the callback when there is an error with the envelope structure (item)', function (done) { | ||
var options = { | ||
host: '127.0.0.1', | ||
port: 6379 | ||
}; | ||
var redis = new Redis(options); | ||
redis.client = { | ||
get: function (item, callback) { | ||
callback(null, '{ "stored": "123" }'); | ||
} | ||
}; | ||
redis.get('test', function (err) { | ||
expect(err).to.exist; | ||
expect(err.message).to.equal('Incorrect envelope structure'); | ||
done(); | ||
}); | ||
}); | ||
it('is able to retrieve an object thats stored when connection is started', function (done) { | ||
@@ -578,0 +601,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28644
730
+ Addedhoek@2.16.3(transitive)
- Removedhoek@1.5.2(transitive)
Updatedhoek@2.x.x