Files
stream.api/pkg/cache/cache.go
2026-01-19 12:12:29 +07:00

15 lines
327 B
Go

package cache
import (
"context"
"time"
)
// Cache defines the interface for caching operations
type Cache interface {
Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
Get(ctx context.Context, key string) (string, error)
Del(ctx context.Context, key string) error
Close() error
}