Skip to content

Commit

Permalink
ensure cached values only last 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Dec 5, 2012
1 parent b36f2a1 commit 499b0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/cacheTest.js
Expand Up @@ -27,7 +27,7 @@ action.run = function(api, connection, next)

connection.response.cacheTestResults = {};

api.cache.save(api, key, value, null, function(err, resp){
api.cache.save(api, key, value, 5000, function(err, resp){
connection.response.cacheTestResults.saveResp = resp;
api.cache.size(api, function(err, numberOfCacheObjects){
connection.response.cacheTestResults.sizeResp = numberOfCacheObjects;
Expand Down

0 comments on commit 499b0d3

Please sign in to comment.