neu_draw.cache¶
Caching for sources reads, which take seconds each from an object store.
A Cache is anything with in, [] and []=, so a plain dict works.
MemoryCache is the in-memory default and Yes3Cache a persistent one.
Classes¶
|
|
A |
|
Caches nothing. The explicit way to turn caching off. |
|
Adapter for a |
Functions¶
|
Normalise the |
Module Contents¶
- class neu_draw.cache.Cache¶
Bases:
Protocolkey in cache,cache[key],cache[key] = value.
- class neu_draw.cache.MemoryCache¶
Bases:
dictA
dict, named for readability at the call site.Initialize self. See help(type(self)) for accurate signature.
- class neu_draw.cache.NullCache¶
Caches nothing. The explicit way to turn caching off.
- class neu_draw.cache.Yes3Cache(location: Any)¶
Adapter for a
yes3path-backed cache, so results survive a kernel restart (needs thecacheextra).