sync

package
v0.0.0-...-4a288d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2025 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutexRedis

type MutexRedis struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func MutexWrap

func MutexWrap(c redis.Client) *MutexRedis

func (*MutexRedis) Expire

func (m *MutexRedis) Expire(ctx context.Context, key string, expiration time.Duration) *goredis.BoolCmd

func (*MutexRedis) Get

func (m *MutexRedis) Get(ctx context.Context, key string) *goredis.StringCmd

func (*MutexRedis) Persist

func (m *MutexRedis) Persist(ctx context.Context, key string) *goredis.BoolCmd

func (*MutexRedis) SAdd

func (m *MutexRedis) SAdd(ctx context.Context, key string, values ...interface{}) *goredis.IntCmd

func (*MutexRedis) SMembers

func (m *MutexRedis) SMembers(ctx context.Context, key string) *goredis.StringSliceCmd

func (*MutexRedis) Set

func (m *MutexRedis) Set(ctx context.Context, key string, value any, expiration time.Duration) *goredis.StatusCmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL