Commit e1a3529a authored by Dustin Diaz's avatar Dustin Diaz

document lifetime number

parent 5531a6a4
......@@ -136,7 +136,7 @@ Touches the given key.
**Arguments**
`key`: **String** The key
`lifetime`: **Number** After how long should the key expire.
`lifetime`: **Number** After how long should the key expire measured in `seconds`
`callback`: **Function**
```js
......@@ -202,7 +202,7 @@ Stores a new value in Memcached.
`key`: **String** the name of the key
`value`: **Mixed** Either a buffer, JSON, number or string that you want to store.
`lifetime`: **Number**, how long the data needs to be stored
`lifetime`: **Number**, how long the data needs to be stored measured in `seconds`
`callback`: **Function** the callback
```js
......@@ -219,7 +219,7 @@ Replaces the value in memcached.
`key`: **String** the name of the key
`value`: **Mixed** Either a buffer, JSON, number or string that you want to store.
`lifetime`: **Number**, how long the data needs to be replaced
`lifetime`: **Number**, how long the data needs to be replaced measured in `seconds`
`callback`: **Function** the callback
```js
......@@ -236,7 +236,7 @@ Add the value, only if it's in memcached already.
`key`: **String** the name of the key
`value`: **Mixed** Either a buffer, JSON, number or string that you want to store.
`lifetime`: **Number**, how long the data needs to be replaced
`lifetime`: **Number**, how long the data needs to be replaced measured in `seconds`
`callback`: **Function** the callback
```js
......@@ -253,7 +253,7 @@ Add the value, only if it matches the given CAS value.
`key`: **String** the name of the key
`value`: **Mixed** Either a buffer, JSON, number or string that you want to store.
`lifetime`: **Number**, how long the data needs to be replaced
`lifetime`: **Number**, how long the data needs to be replaced measured in `seconds`
`cas`: **String** the CAS value
`callback`: **Function** the callback
......
......@@ -23,7 +23,7 @@ describe("Memcached TOUCH", function() {
, testnr = ++global.testnumbers
, callbacks = 0;
memcached.set("test:" + testnr, message, 1000, function(error, ok){
memcached.set("test:" + testnr, message, 1, function(error, ok){
++callbacks;
assert.ok(!error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment