Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Set(ctx context.Context, key string, value interface{}) error
SetEx(ctx context.Context, key string, value interface{}, duration time.Duration) error
Get(ctx context.Context, key string) (string, error)
Del(ctx context.Context, key string) error
DelAll(ctx context.Context, keys ...string) error
Incr(ctx context.Context, key string) error
Decr(ctx context.Context, key string) error
}
Click to show internal directories.
Click to hide internal directories.