Stillpoint-Software / hyperbee.pipeline

A pipeline library for constructing asynchronous fluent pipelines in .NET
https://stillpoint-software.github.io/hyperbee.pipeline/
Other
2 stars 0 forks source link

[FEATURE]: Create Extension to Support Caching values #2

Closed MattEdwardsWaggleBee closed 6 months ago

MattEdwardsWaggleBee commented 6 months ago

Tell us about your idea

It would be nice if complex steps in a pipeline could be cached to speed up future runs.

var command = PipelineFactory
    .Start<string>()
    .PipeCacheAsync( RunComplexAsync )
    .Build();

Or a set of steps:

// Takes a string and returns a number
var command = PipelineFactory
    .Start<string>()
    .PipeCacheAsync( b => b
        .PipeAsync( RunComplexAsync )
        .Pipe( OtherComplex )
    .Build();

Anything else?

No response

github-actions[bot] commented 6 months ago

Branch feature/2-feature-create-extension-to-support-caching-values created!