Implement SDK-side Caching
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?
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 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.
Here is the PR: https://github.com/Flagsmith/flagsmith-dotnet-client/pull/77
Awesome thanks!
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 Feature secret_button has been updated:
| Environment | Enabled | Value | Last Updated (UTC) |
|---|---|---|---|
| Development | ✅ Enabled | {colour: "#080808"} |
2024-06-04 16:40:28 |
Flagsmith Feature secret_button has been updated:
| Environment | Enabled | Value | Last Updated (UTC) |
|---|---|---|---|
| Development | ❌ Disabled | {colour: "#080808"} |
2024-06-04 16:41:46 |