Documentation
¶
Index ¶
Constants ¶
View Source
const (
Nil = redis.Nil
)
Variables ¶
View Source
var ErrNotObtained = redislock.ErrNotObtained
Functions ¶
Types ¶
type Interface ¶
type Interface interface { Get(ctx context.Context, key string) (string, error) SetEX(ctx context.Context, key string, val string, expTime time.Duration) error Lock(ctx context.Context, key string, expTime time.Duration) (*redislock.Lock, error) LockRelease(ctx context.Context, lock *redislock.Lock) error Del(ctx context.Context, key string) error FlushAll(ctx context.Context) error FlushAllAsync(ctx context.Context) error FlushDB(ctx context.Context) error FlushDBAsync(ctx context.Context) error GetDefaultTTL(ctx context.Context) time.Duration Ping(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.