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

optimade.prefetch() method #13

Open
Valexr opened this issue Dec 6, 2021 · 0 comments
Open

optimade.prefetch() method #13

Valexr opened this issue Dec 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Valexr
Copy link
Contributor

Valexr commented Dec 6, 2021

Add optimade.prefetch() method to make custom local cache

const optimade = new Optimade({
  providersUrl: "https://providers.optimade.org/providers.json",
});

optimade.prefetch({
  pathWithFileName: './prefetch.json', 
  excludeProviders: [''],
  batch: false
})

pathWithFileName - path to file output filename.json location
excludeProviders - array for exclude providers from cache
batch - portion statusable prefetching

@Valexr Valexr added the enhancement New feature or request label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant