Comparing version 0.2.1 to 0.2.2
@@ -10,6 +10,8 @@ # Authors and contributors of the node Memcached driver project in alphabetical order. | ||
- Joseph Mordetsky | ||
- Kinya TERASAKA | ||
- Near Privman | ||
- Nebojsa Sabovic | ||
- René van Sweeden | ||
- Ron Korving | ||
- Sebastian Seilund | ||
- Tobias Müllerleile |
@@ -407,2 +407,6 @@ "use strict"; | ||
, 'TOUCHED': function touched(tokens, dataSet) { | ||
return [CONTINUE, true]; | ||
} | ||
, 'DELETED': function deleted(tokens, dataSet) { | ||
@@ -598,2 +602,7 @@ return [CONTINUE, true]; | ||
// Fix zero-line endings in the middle | ||
var chunkLength = (chunks.length-1); | ||
if( chunks[chunkLength].length == 0 ) | ||
chunks.splice(chunkLength, 1) | ||
S.responseBuffer = ""; // clear! | ||
@@ -722,2 +731,15 @@ this.rawDataReceived(S, S.bufferArray = S.bufferArray.concat(chunks)); | ||
// This is where the actual Memcached API layer begins: | ||
memcached.touch = function touch(key, lifetime, callback) { | ||
this.command(function touchCommand() { | ||
return { | ||
key: key | ||
, callback: callback | ||
, lifetime: lifetime | ||
, validate: [['key', String], ['lifetime', Number], ['callback', Function]] | ||
, type: 'touch' | ||
, command: ['touch', key, lifetime].join(' ') | ||
} | ||
}) | ||
}; | ||
memcached.get = function get(key, callback) { | ||
@@ -724,0 +746,0 @@ if (Array.isArray(key)) return this.getMulti.apply(this, arguments); |
{ | ||
"name": "memcached" | ||
, "version": "0.2.1" | ||
, "version": "0.2.2" | ||
, "author": "Arnout Kazemier" | ||
@@ -5,0 +5,0 @@ , "description": "A fully featured Memcached API client, supporting both single and clustered Memcached servers through consistent hashing and failover/failure. Memcached is rewrite of nMemcached, which will be deprecated in the near future." |
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
473981
65
3360
9
7