MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / _stats

Function _stats

dwave/cloud/cli.py:1224–1228  ·  view source on GitHub ↗
(cache: diskcache.Cache)

Source from the content-addressed store, hash-verified

1222
1223def _get_cache_info(config: ClientConfig) -> dict[str, list[dict]]:
1224 def _stats(cache: diskcache.Cache) -> dict:
1225 return {
1226 'count': len(cache),
1227 'size': cache.volume(),
1228 }
1229
1230 def _cache(path: Path) -> dict:
1231 with diskcache.Cache(disk=diskcache.JSONDisk, directory=path) as cache:

Callers 2

_cacheFunction · 0.85
_credsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected