beyond
Version:
The Full Stack Universal Typescript Framework
24 lines (19 loc) • 507 B
JavaScript
module.exports = class {
#cache = require('./cache');
#socketId;
constructor(socketId) {
this.#socketId = socketId;
}
insert(key, value) {
return this.#cache.insert(this.#socketId, key, value);
}
update(key, value) {
return this.#cache.update(this.#socketId, key, value);
}
has(key) {
return this.#cache.has(this.#socketId, key);
}
get(key) {
return this.#cache.get(this.#socketId, key);
}
}