httpsms-gateway / api /pkg /cache /cache.go
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
Raw History Blame Contribute Delete
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)
}