adonis-cache
adonis-cache copied to clipboard
file driver cache hashing does not work
If I use "file" cache driver the cache gets named [object Promise].cache and by awaiting the key hashing I get different key each time, so using get or has etc. will result in error, since the file named after the hashed key cannot exist.
i'm facing this problem too, any solution ?
Hash.makeis a async method, but in FileCache.ts it called without aawaitprivate hashKey(key: string) { return this.hash.make(key + '') }- There is a lot of synchronous file API call
- The testing was lacking
this file cache driver is not ready for production usage