Emitted when a cache entry is automatically removed after its TTL elapses.
cache.on(MemorizeEventType.Expire, (e) => { console.log(`expired ${e.key}`);}); Copy
cache.on(MemorizeEventType.Expire, (e) => { console.log(`expired ${e.key}`);});
The cache key that expired.
Emitted when a cache entry is automatically removed after its TTL elapses.
Example