@nxarch/nest-nguniversal
Version:
A NestJS library to serve your NestJS Angular Universal project
14 lines (13 loc) • 390 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InMemoryCacheStorage = void 0;
const cache = require("memory-cache");
class InMemoryCacheStorage {
set(key, value, request, expiresIn) {
cache.put(key, value, expiresIn);
}
get(key, request) {
return cache.get(key);
}
}
exports.InMemoryCacheStorage = InMemoryCacheStorage;