We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5572de commit 5bdaf86Copy full SHA for 5bdaf86
1 file changed
utils/utils.go
@@ -69,14 +69,8 @@ var jsonPathCacheEager sync.Map
69
// ClearJSONPathCache resets the compiled JSONPath cache.
70
// Call this between document lifecycles in long-running processes to bound memory.
71
func ClearJSONPathCache() {
72
- jsonPathCacheLazy.Range(func(key, _ interface{}) bool {
73
- jsonPathCacheLazy.Delete(key)
74
- return true
75
- })
76
- jsonPathCacheEager.Range(func(key, _ interface{}) bool {
77
- jsonPathCacheEager.Delete(key)
78
79
- jsonPathCache.Clear()
+ jsonPathCacheLazy.Clear()
+ jsonPathCacheEager.Clear()
80
}
81
82
var jsonPathQuery = func(path *jsonpath.JSONPath, node *yaml.Node) []*yaml.Node {
0 commit comments