lenskit.pipeline.PipelineCache#

class lenskit.pipeline.PipelineCache#

A cache to share components between pipelines.

This cache can be used by PipelineBuilder to cache pipeline component instances between multiple pipelines using the same components with the same configuration.

get_cached(ctor, config)#
Parameters:
cache(ctor, config, instance)#
Parameters:
get_instance(ctor, config)#

Get a component instance from the cache, creating if it necessry.

Parameters: