orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 134 forks source link

[Feature] Memory Source cache TTL/LRU cache option? #936

Open bradjones1 opened 2 years ago

bradjones1 commented 2 years ago

Forgive me for all the recent spitballing in the issue queue.

Akin to the thought process behind https://github.com/orbitjs/orbit/issues/934, curious maintainers' thoughts on TTL for cache entries? That is, if I have a cached record, the source can be configured to return it for only X seconds, at which time the object is not returned.