Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Get(ctx context.Context, key string) (string, error)
Set(ctx context.Context, key string, value any, ttl time.Duration) error
Del(ctx context.Context, key string) error
GetDel(ctx context.Context, key string) (string, error)
PTTL(ctx context.Context, key string) (time.Duration, error)
}
Click to show internal directories.
Click to hide internal directories.