plugin-barman-cloud
plugin-barman-cloud copied to clipboard
fix: prevent memory leak by periodically cleaning up expired cache entries
The ExtendedClient cache implementation was only replacing expired entries when the exact same object was requested again. Different objects (secrets and object stores) were continuously being added to the cache slice but never removed, causing unbounded memory growth.
Partially Fixes: #385
Tagging as partial fix given that this is very minor given that the objects rarely change