PHP 8.2.30
Preview: cache.js Size: 409 B
//opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/ajv/lib/cache.js

'use strict';


var Cache = module.exports = function Cache() {
  this._cache = {};
};


Cache.prototype.put = function Cache_put(key, value) {
  this._cache[key] = value;
};


Cache.prototype.get = function Cache_get(key) {
  return this._cache[key];
};


Cache.prototype.del = function Cache_del(key) {
  delete this._cache[key];
};


Cache.prototype.clear = function Cache_clear() {
  this._cache = {};
};

Directory Contents

Dirs: 4 × Files: 6

Name Size Perms Modified Actions
compile DIR
- drwxr-xr-x 2024-03-03 22:41:56
Edit Download
dot DIR
- drwxr-xr-x 2024-03-03 22:41:56
Edit Download
dotjs DIR
- drwxr-xr-x 2024-03-03 22:41:56
Edit Download
refs DIR
- drwxr-xr-x 2024-03-03 22:41:56
Edit Download
1.02 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
11.68 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
15.55 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
409 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
3.56 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
947 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).