node-ts-cache
node-ts-cache copied to clipboard
Simple and extensible caching module supporting decorators
For disk / memory usage improvement with redis I think it's better to not handle the TTL manually. And also a TTL in milliseconds would be better imho.
I found there is a function `clear()` and expect it to clear the full cache. But how to I clear the cache only for a single value? If this is...
**What this PR is about:** Adding some new methods for easier and better access and management **What has been changed:** - Created `removeItem` method in FS-Storage, Memory-Storage, CacheContainer, and Storage...
Hello, in ioredis, I only see the instance of redis, not the instance of cluster. Can I use rediscluster at present?
Error when trying to cache a method with a string parameter Example: ```typescript import { Cache, CacheContainer } from 'node-ts-cache'; import { NodeFsStorage } from 'node-ts-cache-storage-node-fs'; const userCache = new...
When failSafe passed redis storage won't throw an exception.
I created a cached method using the decorator and backed by NodeFsStorage. If the method returns a boolean that you want to cache, and the boolean value is false, the...
When annotating method calls with memory cache it seems reasonable to allow to receive individual copies so eventuall modifications of cache item are not affecting the actual cache item.
https://github.com/havsar/node-ts-cache/blob/d51ecfe639b42c46fbdc099bc44df3a225cb23cd/packages/core/src/cache-container/cache-container.ts#L12-L22 If I read your code correctly, you're only releasing cache entries when the user retrieves them and they are out of date. So if my class method returns a...