node-ts-cache icon indicating copy to clipboard operation
node-ts-cache copied to clipboard

Simple and extensible caching module supporting decorators

Results 10 node-ts-cache issues
Sort by recently updated
recently updated
newest added

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.

enhancement

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...

enhancement

**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...

enhancement

Hello, in ioredis, I only see the instance of redis, not the instance of cluster. Can I use rediscluster at present?

question

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...

bug

When failSafe passed redis storage won't throw an exception.

enhancement
help wanted

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...

bug

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...

question