lenskit.pipeline.PipelineCache#
- class lenskit.pipeline.PipelineCache#
Bases:
objectA cache to share components between pipelines.
This cache can be used by
PipelineBuilderto cache pipeline component instances between multiple pipelines using the same components with the same configuration.- __init__()#
Methods
__init__()cache(ctor, config, instance)get_cached(ctor, config)get_instance(ctor, config)Get a component instance from the cache, creating if it necessry.