Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Get(ctx context.Context, key string) (string, error) Set(ctx context.Context, key string, value string, ttl ...time.Duration) error Exists(ctx context.Context, key string) (bool, error) Increment(ctx context.Context, key string, value int64, ttl ...time.Duration) (int64, error) Del(ctx context.Context, key string) error Close(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.