catbox-memory
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -19,6 +19,6 @@ 'use strict'; | ||
// Provides a named reference for memory debugging | ||
internals.MemoryCacheSegment = function MemoryCacheSegment () { | ||
internals.MemoryCacheSegment = function MemoryCacheSegment() { | ||
}; | ||
internals.MemoryCacheEntry = function MemoryCacheEntry (key, value, ttl, allowMixedContent) { | ||
internals.MemoryCacheEntry = function MemoryCacheEntry(key, value, ttl, allowMixedContent) { | ||
@@ -49,3 +49,3 @@ let valueByteSize = 0; | ||
exports = module.exports = internals.Connection = function MemoryCache (options) { | ||
exports = module.exports = internals.Connection = function MemoryCache(options) { | ||
@@ -52,0 +52,0 @@ Hoek.assert(this.constructor === internals.Connection, 'Memory cache client must be instantiated using new'); |
{ | ||
"name": "catbox-memory", | ||
"description": "Memory adapter for catbox", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"repository": "git://github.com/hapijs/catbox-memory", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"hoek": "3.x.x" | ||
"hoek": "4.x.x" | ||
}, | ||
@@ -22,3 +22,3 @@ "devDependencies": { | ||
"code": "2.x.x", | ||
"lab": "7.x.x" | ||
"lab": "10.x.x" | ||
}, | ||
@@ -25,0 +25,0 @@ "scripts": { |
catbox-memory | ||
============= | ||
Memory adapter for catbox | ||
Memory adapter for [catbox](https://github.com/hapijs/catbox). | ||
@@ -18,4 +18,4 @@ Lead Maintainer - [Colin Ihrig](https://github.com/cjihrig) | ||
to an object using `JSON.parse()` on retrieval. By setting this option to `true`, | ||
`Buffer` data can be stored alongside the stringified data. `Buffer`s are not | ||
`Buffer` data can be stored alongside the stringified data. `Buffer`s are not | ||
stringified, and are copied before storage to prevent the value from changing while | ||
in the cache. Defaults to `false`. | ||
in the cache. Defaults to `false`. |
@@ -43,2 +43,3 @@ 'use strict'; | ||
expect(err).to.not.exist(); | ||
expect(client.isReady()).to.equal(true); | ||
@@ -55,2 +56,3 @@ done(); | ||
expect(err).to.not.exist(); | ||
expect(client.isReady()).to.equal(true); | ||
@@ -69,2 +71,3 @@ client.stop(); | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -91,4 +94,4 @@ client.set(key, '123', 500, (err) => { | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
client.set(key, buffer, 500, (err) => { | ||
@@ -115,4 +118,4 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
client.set(key, buffer, 500, (err) => { | ||
@@ -138,4 +141,4 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
client.set(key, buffer, 500, (err) => { | ||
@@ -161,4 +164,4 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
client.set(key, '123', 500, (err) => { | ||
@@ -193,2 +196,4 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -212,2 +217,4 @@ const value = { a: 1 }; | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -231,2 +238,3 @@ | ||
expect(err).to.not.exist(); | ||
expect(client.isReady()).to.equal(true); | ||
@@ -268,2 +276,3 @@ --x; | ||
expect(err).to.not.exist(); | ||
client.get(null, (err, result) => { | ||
@@ -284,2 +293,3 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -309,2 +319,3 @@ | ||
expect(err).to.not.exist(); | ||
client.set(null, {}, 1000, (err) => { | ||
@@ -324,2 +335,3 @@ | ||
expect(err).to.not.exist(); | ||
client.get({}, (err) => { | ||
@@ -339,2 +351,3 @@ | ||
expect(err).to.not.exist(); | ||
client.set({}, {}, 1000, (err) => { | ||
@@ -354,2 +367,3 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -441,2 +455,3 @@ | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -714,2 +729,3 @@ client.set(key, '123', 500, (err) => { | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -738,2 +754,3 @@ client.set(key, '123', 500, (err) => { | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -753,2 +770,3 @@ client.drop(key, (err) => { | ||
expect(err).to.not.exist(); | ||
const key = { id: 'x', segment: 'test' }; | ||
@@ -777,2 +795,3 @@ client.set(key, '123', 500, (err) => { | ||
expect(err).to.not.exist(); | ||
client.drop({}, (err) => { | ||
@@ -791,2 +810,3 @@ | ||
expect(err).to.not.exist(); | ||
client.drop(null, (err) => { | ||
@@ -793,0 +813,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
32765
777
21
+ Addedhoek@4.3.1(transitive)
- Removedhoek@3.0.4(transitive)
Updatedhoek@4.x.x