Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cache internal computations? #176

Open
rshin opened this issue Jun 30, 2020 · 1 comment
Open

How to cache internal computations? #176

rshin opened this issue Jun 30, 2020 · 1 comment
Labels

Comments

@rshin
Copy link

rshin commented Jun 30, 2020

The README says:

Content store caching is used by default for all external steps, and can be enabled for internal computations by providing suitable serialisation/deserialisation functions.

Are there any examples of how to provide the serialisation/deserialisation functions?

@dorranh
Copy link
Contributor

dorranh commented Jul 22, 2021

Hi @rshin! In the newer version of funflow we've included a tutorial for caching pipeline steps. The constraint on the output of the pipeline step is that the output type has an instance of Store (many of the usual types already have instances implemented). More info on the Store typeclass can be found here https://hackage.haskell.org/package/store-0.7.11/docs/Data-Store.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants