/
XPLAY
/
Sonara
Обзор
Документация
Войти
/
XPLAY
/
Sonara
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/ajv/lib/cache.js
26 строк
409 B
XPLAY
First commit
06 июл 2026, 13:21
06 июл 2026, 13:21
00a7d42
Код
Авторство
О чём код?
'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 = {}; };