Download server/src/common/cache.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 202 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/ba89fcbd4ce8c877fd4fcffd6ecd14cddf11e110/server/src/common/cache.js
- Command line
-
hf download hf://spaces/linuxrun/deer@ba89fcbd4ce8c877fd4fcffd6ecd14cddf11e110/server/src/common/cache.js
-
curl -L -o cache.js https://huggingface.co/spaces/linuxrun/deer/resolve/ba89fcbd4ce8c877fd4fcffd6ecd14cddf11e110/server/src/common/cache.js
202 Bytes
| const cache = {}; | |
| function get(key) { | |
| return cache[key]; | |
| } | |
| function set(key, value) { | |
| cache[key] = value; | |
| } | |
| const exports = { | |
| get, | |
| set, | |
| }; | |
| export default exports; | |
| module.exports = exports; | |