Download constant/cache_key.go from AZILS/new-api: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/AZILS/new-api/resolve/main/constant/cache_key.go
- Command line
-
hf download hf://spaces/AZILS/new-api/constant/cache_key.go
-
curl -L -o cache_key.go https://huggingface.co/spaces/AZILS/new-api/resolve/main/constant/cache_key.go
278 Bytes
| package constant | |
| // Cache keys | |
| const ( | |
| UserGroupKeyFmt = "user_group:%d" | |
| UserQuotaKeyFmt = "user_quota:%d" | |
| UserEnabledKeyFmt = "user_enabled:%d" | |
| UserUsernameKeyFmt = "user_name:%d" | |
| ) | |
| const ( | |
| TokenFiledRemainQuota = "RemainQuota" | |
| TokenFieldGroup = "Group" | |
| ) | |