pyphi.cache.registry#
Process-local registry of cache policies.
Every PyPhi cache (kernel, module-level, instance-level) registers a
CachePolicy adapter here at construction time. The registry exposes
a uniform info() / clear_all() / clear(name) surface,
re-exported from pyphi.cache.
This registry is process-local — caches in PyPhi are not shared across
processes. PyPhi assumes process-isolated parallelism (Ray-based); see
the threading note in pyphi.cache.
Functions
|
Clear one named cache. |
Clear every registered in-memory cache. |
|
|
Return per-cache stats for every registered policy. |
|
Register a cache policy. |
|
Remove a registration. |