mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
215 B
JavaScript
17 lines
215 B
JavaScript
var cache = {};
|
|
|
|
function get(key) {
|
|
return cache[key];
|
|
}
|
|
|
|
function put(key, value) {
|
|
cache[key] = value;
|
|
}
|
|
|
|
function clear() {
|
|
cache = {};
|
|
}
|
|
|
|
exports.get = get;
|
|
exports.put = put;
|
|
exports.clear = clear; |