adapters

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: 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 GoRedisAdapter

type GoRedisAdapter struct {
	// contains filtered or unexported fields
}

func NewGoRedisAdapter

func NewGoRedisAdapter(client *redis.Client) *GoRedisAdapter

func (*GoRedisAdapter) Eval

func (g *GoRedisAdapter) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *lock.Result

func (*GoRedisAdapter) Expire

func (g *GoRedisAdapter) Expire(ctx context.Context, key string, expiration time.Duration) *lock.BoolResult

func (*GoRedisAdapter) HGet

func (g *GoRedisAdapter) HGet(ctx context.Context, key, field string) *lock.StringResult

type GoRedisV8Adapter

type GoRedisV8Adapter struct {
	// contains filtered or unexported fields
}

func NewGoRedisV8Adapter

func NewGoRedisV8Adapter(client redisV8.Cmdable) *GoRedisV8Adapter

func (*GoRedisV8Adapter) Eval

func (g *GoRedisV8Adapter) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *lock.Result

func (*GoRedisV8Adapter) Expire

func (g *GoRedisV8Adapter) Expire(ctx context.Context, key string, expiration time.Duration) *lock.BoolResult

func (*GoRedisV8Adapter) HGet

func (g *GoRedisV8Adapter) HGet(ctx context.Context, key, field string) *lock.StringResult

Jump to

Keyboard shortcuts

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