Download spectrum/shared/db/query-cache.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/db/query-cache.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/db/query-cache.js
-
curl -L -o query-cache.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/db/query-cache.js
251 Bytes
| // @flow | |
| import TagCache from 'redis-tag-cache'; | |
| const DEFAULT_REDIS_OPTIONS = { | |
| keyPrefix: 'query-cache', | |
| }; | |
| const queryCache = new TagCache({ | |
| defaultTimeout: 86400, | |
| redis: { | |
| ...DEFAULT_REDIS_OPTIONS, | |
| }, | |
| }); | |
| export default queryCache; | |