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

Request: Make types caching interval configurable via provider parameter #185

Open
jkone27 opened this issue Jun 12, 2021 · 0 comments
Open

Comments

@jkone27
Copy link
Contributor

jkone27 commented Jun 12, 2021

Description

Seems it would be nice to make this time configurable, for very big openapi.json specs, the type providers might take more than 30 seconds to regenerate, making the cache kind of not useful (always re-generating types)...

I am using SwaggerProvider so not sure if the underlying code is the same here (i guess)

module Cache =
   let providedTypes = Caching.createInMemoryCache (TimeSpan.FromSeconds 30.0)

I suppose is here, could this become a type provider parameter, with default value of 30.0 ? https://github.com/fsprojects/SwaggerProvider/blob/2cf23f67aa7dc7df98179ee02d07be10beb8f354/src/SwaggerProvider.DesignTime/Provider.OpenApiClient.fs

@jkone27 jkone27 changed the title Request: Make types caching interval configurable from Request: Make types caching interval configurable via provider parameter Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant