Download wp-calypso/client/server/state-cache/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 147 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/server/state-cache/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/server/state-cache/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/server/state-cache/index.js
147 Bytes
| import Lru from 'lru'; | |
| const HOUR_IN_MS = 3600000; | |
| const stateCache = new Lru( { | |
| max: 500, | |
| maxAge: HOUR_IN_MS, | |
| } ); | |
| export default stateCache; | |