file-system-cache
file-system-cache copied to clipboard
A super-fast, promise based cache that reads and writes to the file-system.
Accessing a cache key that's never been defined using `cache.get(key, defaultValue)` returns `defaultValue`. However, if the cache key previously existed, but has expired, it returns `undefined`, ignoring the default value....
Hello everyone, I'm looking for a way to automatically remove data from the cache when the TTL is exceeded. Is there a way to do this? Thanks to all
Allow passing a parameter to get that allows returning a stale. This can be used to fallback to last know value if needed. let data = myCache.get(cacheKey); if (!data )...
Currently datatypes such as Dates, Sets or Maps are not supported as JSON can't represent those types. The solutions I'm thinking of are: 1. Only allow types that can be...
I'm using file-system-cache to help store fixture data for tests. I'd like to be able to easily read the file system and see which file is for what data. Perhaps...
Primary Issue: #24 Related Issue (that will get fixed along with this): #35
As a user, I would like the ability to selectively encrypt my filesystem cache. I'd be happy to help with implementation on this if you are open to the idea.
When there are mutiple worker. The first one write and the second one read. Sometime the reader can get partial data. It will throw JSON parse error.
FIX for #49 , #52, #53 --- Solution idea provided by [conorfuller](https://github.com/conorfuller) within #52 > This is a Node 20/Next 14 based application and we are using a commonjs environment...
Hello! First and foremost, thank you for the awesome library - we've been using it for a few weeks now and are very impressed with the results. We attempted to...