Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEntryNotFound = errors.New("[cache] entry is not found")
)
Errors list
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Set(ctx context.Context, key string, value any, lifetime time.Duration) error TrySet(ctx context.Context, key string, value any, lifetime time.Duration) error Get(ctx context.Context, key string, target any) error Del(ctx context.Context, key string) error }
Client data accessor
Click to show internal directories.
Click to hide internal directories.