Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repo ¶
type Repo interface { Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error Get(ctx context.Context, key string) (string, error) TTL(ctx context.Context, key string) (time.Duration, error) Expire(ctx context.Context, key string, ttl time.Duration) bool ExpireAt(ctx context.Context, key string, ttl time.Time) bool Del(ctx context.Context, key string) bool Exists(ctx context.Context, keys ...string) bool Incr(ctx context.Context, key string) int64 Close() error Version() string // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.