Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Add purgeall() cache function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrut committed Aug 5, 2013
1 parent d8d84b1 commit 371cf75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/cradle/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ this.Cache.prototype = {
that.keys -= pruned;
});
}
}
},
purgeall: function() {
this.store = [];
this.keys = 0;
};

function clone(obj) {
Expand Down

0 comments on commit 371cf75

Please sign in to comment.