flagsmith-dotnet-client icon indicating copy to clipboard operation
flagsmith-dotnet-client copied to clipboard

Implement SDK-side Caching

Open acandylevey opened this issue 4 years ago • 4 comments

Hi There,

It looks like the .Net client does a request to the endpoint every single time, any plans to cache the flags on the backend, say for 30 seconds?

acandylevey avatar Sep 27 '21 03:09 acandylevey

Hi @acandylevey - it is something we're planning to bring to all SDKs - e.g our Java and Javascript SDKs have caching support. Just a question of priority! Happy to take PRs tho!

dabeeeenster avatar Sep 27 '21 08:09 dabeeeenster

@dabeeeenster I'm currently writing a first draft to support caching. I will probably commit this pretty soon. It might not be fully tested because I want feedback before doing all the tests.

JFCote avatar Oct 05 '23 18:10 JFCote

Here is the PR: https://github.com/Flagsmith/flagsmith-dotnet-client/pull/77

JFCote avatar Oct 05 '23 18:10 JFCote

Awesome thanks!

dabeeeenster avatar Oct 05 '23 20:10 dabeeeenster

Flagsmith feature linked: secret_button Default Values:

Environment Enabled Value Last Updated (UTC)
Development ❌ Disabled {colour: "#080808"} 2024-06-04 16:36:40
Production ✅ Enabled {colour: "#080808"} 2024-03-28 20:58:49

flagsmith[bot] avatar Jun 04 '24 16:06 flagsmith[bot]

Flagsmith Feature secret_button has been updated:

Environment Enabled Value Last Updated (UTC)
Development ✅ Enabled {colour: "#080808"} 2024-06-04 16:40:28

flagsmith[bot] avatar Jun 04 '24 16:06 flagsmith[bot]

Flagsmith Feature secret_button has been updated:

Environment Enabled Value Last Updated (UTC)
Development ❌ Disabled {colour: "#080808"} 2024-06-04 16:41:46

flagsmith[bot] avatar Jun 04 '24 16:06 flagsmith[bot]