Download node_modules/bottleneck/src/redis/refresh_expiration.lua from mikmc5/aistats: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/bottleneck/src/redis/refresh_expiration.lua
- Command line
-
hf download hf://spaces/mikmc5/aistats/node_modules/bottleneck/src/redis/refresh_expiration.lua
-
curl -L -o refresh_expiration.lua https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/bottleneck/src/redis/refresh_expiration.lua
237 Bytes
| local refresh_expiration = function (now, nextRequest, groupTimeout) | |
| if groupTimeout ~= nil then | |
| local ttl = (nextRequest + groupTimeout) - now | |
| for i = 1, #KEYS do | |
| redis.call('pexpire', KEYS[i], ttl) | |
| end | |
| end | |
| end | |