dcache icon indicating copy to clipboard operation
dcache copied to clipboard

Add TLRU eviction scheme.

Open happy-san opened this issue 4 years ago • 5 comments

I have a use case where http responses are to be cached in-process and they have associated Time To Live. So it'd be beneficial if the eviction policy took Time To Live into consideration too. Is there any plan to add this additional feature?

happy-san avatar Aug 14 '21 15:08 happy-san

I can add it, it is not an hard thing to do, if you need it quickly you can do it by providing a custom storage that fill this requirements

platelk avatar Sep 02 '21 10:09 platelk

I've gone through the implementation of your package. I understand few bits, some I didn't. Is it okay that I can ask you some clarifying questions and work on this feature for a PR?

happy-san avatar Sep 02 '21 13:09 happy-san

I will implements it this week-end don't worry, but you can ask clarification question. here or on my email: [email protected]

platelk avatar Sep 02 '21 13:09 platelk

That'll be awesome. Thanks :)

happy-san avatar Sep 02 '21 13:09 happy-san

For anybody looking for this feature, you can try cacher package that I released,

happy-san avatar Dec 27 '22 04:12 happy-san