CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
cache.js27 linesDownload Raw Back to lib
1'use strict';2 3 4var Cache = module.exports = function Cache() {5  this._cache = {};6};7 8 9Cache.prototype.put = function Cache_put(key, value) {10  this._cache[key] = value;11};12 13 14Cache.prototype.get = function Cache_get(key) {15  return this._cache[key];16};17 18 19Cache.prototype.del = function Cache_del(key) {20  delete this._cache[key];21};22 23 24Cache.prototype.clear = function Cache_clear() {25  this._cache = {};26};27 
basant307/AI_Governance_Project · CoolFace