Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download api/pkg/cache/cache.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/cache/cache.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/cache/cache.go
-
curl -L -o cache.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/cache/cache.go
246 Bytes
| package cache | |
| import ( | |
| "context" | |
| "time" | |
| ) | |
| // Cache stores items temporarily | |
| type Cache interface { | |
| Set(ctx context.Context, key string, value string, ttl time.Duration) error | |
| Get(ctx context.Context, key string) (value string, err error) | |
| } | |