Commit 6126f20
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]>1 parent e700afa commit 6126f20
File tree
4 files changed
+235
-20
lines changed- dotnet/src
- dotnetcore
- GxClasses/Services/Session
- Providers/Cache/GxRedis
- dotnetframework
- GxClasses/Services/Storage
- Providers/Cache/GxRedis
4 files changed
+235
-20
lines changedLines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| |||
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | | - | |
| 38 | + | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
0 commit comments