Skip to content

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

Open
@jkone27

Description

@jkone27

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions