Commit 7cbcdd7
framework-config: improve configkey caching (apache#10513)
Using a simple hyphen as a delimiter for config cache key can lead to ambiguity if the “name” field itself contains hyphens. To address this, a Ternary object of configkey name, scope and scope ID is used as the config cache keys.
Signed-off-by: Abhishek Kumar <[email protected]>1 parent 8f21197 commit 7cbcdd7
File tree
2 files changed
+13
-12
lines changed- framework/config/src
- main/java/org/apache/cloudstack/framework/config/impl
- test/java/org/apache/cloudstack/framework/config/impl
2 files changed
+13
-12
lines changedLines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
287 | 282 | | |
288 | 283 | | |
289 | 284 | | |
| |||
298 | 293 | | |
299 | 294 | | |
300 | 295 | | |
301 | | - | |
302 | | - | |
| 296 | + | |
| 297 | + | |
303 | 298 | | |
304 | 299 | | |
305 | 300 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
0 commit comments