MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / ClearAPICache

Method ClearAPICache

pkg/api/client.go:272–278  ·  view source on GitHub ↗

ClearAPICache removes all API-related cached responses.

()

Source from the content-addressed store, hash-verified

270
271// ClearAPICache removes all API-related cached responses.
272func (c *Client) ClearAPICache() {
273 if err := c.cache.Clear(); err != nil {
274 c.logger.Debug("Failed to clear API cache: %v", err)
275 } else {
276 c.logger.Debug("API cache cleared successfully")
277 }
278}
279
280// ClearClusterCache selectively invalidates cluster-level cache entries
281// instead of wiping the entire cache. This preserves node-level cached

Callers 9

PullStorageOCIImageMethod · 0.95
DeleteStorageContentMethod · 0.95
CreateVMMethod · 0.95
CreateLXCMethod · 0.95
TestPVEMockAPIFunction · 0.95

Calls 2

ClearMethod · 0.65
DebugMethod · 0.65

Tested by 2

TestPVEMockAPIFunction · 0.76