Part of bzrlib.graph View In Hierarchy
This is useful for providers which have an expensive look up.
Either a ParentsProvider or a get_parent_map-like callback may be supplied. If it provides extra un-asked-for parents, they will be cached, but filtered out of get_parent_map.
The cache is enabled by default, but may be disabled and re-enabled.
Method | __init__ | Constructor. |
Method | __repr__ | Undocumented |
Method | enable_cache | Enable cache. |
Method | disable_cache | Disable and clear the cache. |
Method | get_cached_map | Return any cached get_parent_map values. |
Method | get_cached_parent_map | Return items from the cache. |
Method | get_parent_map | See StackedParentsProvider.get_parent_map. |
Method | note_missing_key | Note that key is a missing key. |
Parameters | parent_provider | The ParentProvider to use. It or get_parent_map must be supplied. |
get_parent_map | The get_parent_map callback to use. It or parent_provider must be supplied. |