epicweb-dev / cachified

🤑 wrap virtually everything that can store by key to act as cache with ttl/max-age, stale-while-validate, parallel fetch protection and type-safety support
MIT License
916 stars 26 forks source link

ASK: where is cache save? #112

Closed ryuxname closed 3 months ago

kentcdodds commented 3 months ago

I don't understand the question.

ryuxname commented 3 months ago

Sorry, but by default, is the cache stored on the server or in the browser?

kentcdodds commented 3 months ago

There is no default. You provide a cache implementation. It depends on that implementation.

ryuxname commented 3 months ago

sorry sir, but i want to know where my cache is stored. i didn't do any settings, just followed the documentation

kentcdodds commented 2 months ago

If you're following the first example from the README and using lru-cache then your cache is stored in memory as lru-cache is an in-memory cache.

But you can use a number of different caching implementations or implement your own that store the value anywhere you like.