lenskit.pipeline.PipelineCache#
- class lenskit.pipeline.PipelineCache#
A 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.- get_cached(ctor, config)#
- Parameters:
ctor (lenskit.pipeline.components.ComponentConstructor[Any, Any])
config (object | None)
- cache(ctor, config, instance)#
- Parameters:
ctor (lenskit.pipeline.components.ComponentConstructor[Any, Any])
config (object | None)
instance (object)
- get_instance(ctor, config)#
Get a component instance from the cache, creating if it necessry.
- Parameters:
ctor (lenskit.pipeline.components.ComponentConstructor[Any, Any])
config (object | None)