Commit 8df1161
authored
framework-config: improve configkey caching (#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 653b973 commit 8df1161
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 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
| |||
301 | 296 | | |
302 | 297 | | |
303 | 298 | | |
304 | | - | |
305 | | - | |
| 299 | + | |
| 300 | + | |
306 | 301 | | |
307 | 302 | | |
308 | 303 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
0 commit comments