Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICacher ¶
type ICacher interface {
Close() error
Delete(ctx context.Context, key string) error
Exist(ctx context.Context, key string) (bool, error)
Get(ctx context.Context, key string) (string, error)
Set(ctx context.Context, key string, value string, expiration time.Duration) error
SetNX(ctx context.Context, key string, value string, expiration time.Duration) (bool, error)
Inc(ctx context.Context, key string) (int64, error)
Dec(ctx context.Context, key string) (int64, error)
}
func NewDefaultCache ¶
func NewDefaultCache() ICacher
Click to show internal directories.
Click to hide internal directories.