From 70522e1910161febeebbaad469c5f6c5679823b2 Mon Sep 17 00:00:00 2001 From: Bryan Donovan Date: Sun, 17 May 2015 16:06:25 -0700 Subject: [PATCH] updating example.js --- examples/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example.js b/examples/example.js index afde009..9d3b875 100644 --- a/examples/example.js +++ b/examples/example.js @@ -8,7 +8,7 @@ var ttl; //Can't use a different ttl per set() call with memory cache // // Basic usage // -memoryCache.set('foo', 'bar', ttl, function(err) { +memoryCache.set('foo', 'bar', function(err) { if (err) { throw err; } memoryCache.get('foo', function(err, result) { @@ -112,7 +112,7 @@ multiCache.wrap(key2, function(cb) { }); // Sets in all caches. - multiCache.set('foo2', 'bar2', ttl2, function(err) { + multiCache.set('foo2', 'bar2', {ttl: ttl2}, function(err) { if (err) { throw err; } // Fetches from highest priority cache that has the key.