UNPKG

ltijs

Version:

Easily turn your web application into a LTI 1.3 Learning Tool.

29 lines • 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MockCacheManager = void 0; // The default CacheManager -- every operation is a no-op (get() always misses). A process-local // in-memory cache would be unsafe to default to: in a multi-instance deployment, neither its TTL // convergence nor its delete()-based invalidation is coordinated across nodes, so "no caching" is the // only choice that's always correct regardless of topology. Opt into real, coordinated caching via // `RedisCacheManager` (`ProviderOptions.cacheManager`), the same way `MongoLegacyDatabaseManager` is // opted into. class MockCacheManager { async listen() { return undefined; } async close() { return undefined; } async get(_key) { return undefined; } async set(_key, _value, _ttlMs) { return undefined; } async delete(_key) { return undefined; } } exports.MockCacheManager = MockCacheManager; exports.default = MockCacheManager; //# sourceMappingURL=mock-cache-manager.service.js.map