Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Set(ctx context.Context, key string, value string) error
SetWithTTL(ctx context.Context, key string, value string, ttl time.Duration) error
Get(ctx context.Context, key string) (string, error)
GetTTL(ctx context.Context, key string) (time.Duration, error)
Del(ctx context.Context, key string)
}
Click to show internal directories.
Click to hide internal directories.