Commit b3f4348
Add local memory cache to Redis implementation to reduce roundtrips (#1214)
* Add local memory cache to Redis implementation to reduce roundtrips
* It seems better to keep GxRedis.cs unified for both .NET Framework and .NET Core.
* Applied Fazzato’s review suggestions
* Fix build error.
* Read ENABLE_MEMORY_CACHE from provider settings and apply it only in the default constructor used by CacheAPI.
* Refactor local cache settings in Redis implementation to support configurable maximum TTL and adjust local cache factor to 20%.
---------
Co-authored-by: claudiamurialdo <[email protected]>
(cherry picked from commit 6126f20)
# Conflicts:
# dotnet/src/dotnetframework/Providers/Cache/GxRedis/GxRedis.cs1 parent dc7ef5e commit b3f4348
File tree
1 file changed
+28
-5
lines changed- dotnet/src/dotnetframework/Providers/Cache/GxRedis
1 file changed
+28
-5
lines changedLines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | 98 | | |
| |||
377 | 394 | | |
378 | 395 | | |
379 | 396 | | |
380 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
381 | 404 | | |
382 | 405 | | |
383 | 406 | | |
| |||
421 | 444 | | |
422 | 445 | | |
423 | 446 | | |
424 | | - | |
| 447 | + | |
425 | 448 | | |
426 | 449 | | |
427 | 450 | | |
| |||
0 commit comments