cacheables icon indicating copy to clipboard operation
cacheables copied to clipboard

A simple in-memory cache written in Typescript with automatic cache invalidation and an elegant syntax.

Results 3 cacheables issues
Sort by recently updated
recently updated
newest added

the source code ![wecom-temp-e957d75f5941203482c21b10ad7ca896](https://user-images.githubusercontent.com/8055289/147624418-8ce30109-fafa-44be-ac07-2ab16929de6f.png) when the resource() error, my code `return Promise.reject()` source code: #fetch -> `await this.#promise` no try...catch. Causes cache judgment error

Relevant to #6 . When the `resource` function returns a rejected promise, the `#fetch` function throws immediately without clearing the `#promise` field. So in every calls of `#fetchNonConcurrent` later, it...

This PR allows a custom cache connector to replace the in-memory cache. This PR retains the default behavior of the library (in-memory cache) but allows you to specify a connector...