Versions in this module Expand all Collapse all v1 v1.1.5 Dec 22, 2023 v1.0.0 Dec 22, 2023 Changes in this version + func NewRedisLock(redis *redis.Pool, redisKey string) (*redisLock, error) + type MockRedisLockIface struct + func NewMockRedisLockIface(ctrl *gomock.Controller) *MockRedisLockIface + func (m *MockRedisLockIface) EXPECT() *MockRedisLockIfaceMockRecorder + func (m *MockRedisLockIface) Release(arg0 *redis.Pool, arg1, arg2 string) error + func (m *MockRedisLockIface) Set(arg0 *redis.Pool, arg1 string, arg2 uint32) (bool, string, error) + type MockRedisLockIfaceMockRecorder struct + func (mr *MockRedisLockIfaceMockRecorder) Release(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockRedisLockIfaceMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call + type RedisLock struct + func (r *RedisLock) Release(redisPool *redis.Pool, key string, randVal string) error + func (r *RedisLock) Set(redisPool *redis.Pool, key string, expireSecond uint32) (bool, string, error) + type RedisLockInterface interface + Release func(*redis.Pool, string, string) error + Set func(*redis.Pool, string, uint32) (bool, string, error)