diff --git a/src/utils/emitter.ts b/src/utils/emitter.ts index 15a7e7b..4475ac4 100644 --- a/src/utils/emitter.ts +++ b/src/utils/emitter.ts @@ -15,6 +15,10 @@ export class CacheEmitter { on(event: Event, listener: CacheEvents[Event]) { return this._emitter.on(event, listener) } + + off(event: Event, listener: CacheEvents[Event]) { + return this._emitter.off(event, listener) + } } export class CachePoolEmitter { @@ -31,4 +35,8 @@ export class CachePoolEmitter { on(event: Event, listener: CachePoolEvents[Event]) { return this._emitter.on(event, listener) } + + off(event: Event, listener: CachePoolEvents[Event]) { + return this._emitter.off(event, listener) + } }