Skip to content

Commit

Permalink
do not wait for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues committed Mar 13, 2023
1 parent 7fa629f commit fd4c1db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cache-inmemory/src/services/inmemory-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class InMemoryCacheService implements ICacheService {
this.invalidate(key)
}, ttl * 1000)

ref.unref()

this.timoutRefs.set(key, ref)
this.store.set(key, record)
}
Expand Down

0 comments on commit fd4c1db

Please sign in to comment.