Skip to content

Add refresh_cache option to ignore/refresh the file cache (#40)#67

Open
Titi211179 wants to merge 1 commit intoNeuralEnsemble:masterfrom
Titi211179:fix/refresh-cache-option
Open

Add refresh_cache option to ignore/refresh the file cache (#40)#67
Titi211179 wants to merge 1 commit intoNeuralEnsemble:masterfrom
Titi211179:fix/refresh-cache-option

Conversation

@Titi211179
Copy link

Fixes #40

Adds a refresh_cache query parameter to all API endpoints. When set
to true, the cached version of the file is invalidated and
re-downloaded from the source.

Changes:

  • Added invalidate() method to CacheManager to remove a specific
    file from cache and index
  • Added refresh_cache parameter to download_neo_data() and
    load_blocks()
  • Added refresh_cache query parameter to all endpoints:
    /blockdata/, /segmentdata/, /analogsignaldata/,
    /spiketraindata/

Usage example:
/api/v1/blockdata/?url=https://example.com/data.nwb&refresh_cache=true

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

Successfully merging this pull request may close these issues.

Add an option to the API to ignore/refresh the file cache

1 participant