'Specify size limit of the items going to be set in cache in nestjs In-memory cache
Is there any option to set the maxSize(in bytes) of the cache or the size limit for the items going to be stored in the in memory cache in nestjs .
My current implementation looks like :
//app module
CacheModule.register({
max: 100,
isGlobal: true
})
// usage
this.client.set(userId, inputId, { ttl: 600})
I checked the function signature and there were no options available .
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
