Added example.

This commit is contained in:
agolybev
2015-04-29 19:10:50 +03:00
parent 9fa5abd662
commit 5a5952e41f
288 changed files with 66614 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
var cache = {};
exports.put = function (key, value) {
cache[key] = value;
}
exports.containsKey = function (key) {
return typeof cache[key] != "undefined";
}
exports.get = function (key) {
return cache[key];
}
exports.delete = function (key) {
delete cache[key];
}
exports.clear = function () {
cache = {};
}