Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedCacheType = errors.New("cache type unsupported")
)
Functions ¶
Types ¶
type Cache ¶
type Cache interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
Get(ctx context.Context, key string) ([]byte, error)
Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
}
Click to show internal directories.
Click to hide internal directories.