earthkit.geo.grids.utils.memcache.MatrixMemoryCache¶
- class earthkit.geo.grids.utils.memcache.MatrixMemoryCache(*args, **kwargs)¶
Bases:
MemoryCache- MAX_SIZE_KEY = 'regrid-precomputed-weights-maximum-memory-cache-size'¶
- POLICY_KEY = 'regrid-precomputed-weights-memory-cache-policy'¶
- STRICT_KEY = 'regrid-precomputed-weights-memory-cache-strict-mode'¶
- clear()¶
Clear the cache.
- curr_mem = 0¶
- get(*args, create=None, find_entry=None, create_from_entry=None)¶
- hits = 0¶
- info()¶
Report cache statistics.
- items¶
- lock¶
- max_mem = 314572800¶
- misses = 0¶
- policy¶
- size_fn = None¶
- strict = False¶
- update()¶
Called when settings change.