driver

package
v0.0.0-...-124b376 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisDriver

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

func NewRedisDriver

func NewRedisDriver(keyPrefix ratomic.LockKeyPrefix, cli *redis.Client) *RedisDriver

func (*RedisDriver) Del

func (dri *RedisDriver) Del(keys ...string) (int64, *ratomic.DriverError)

func (*RedisDriver) KeyPrefix

func (dri *RedisDriver) KeyPrefix() ratomic.LockKeyPrefix

func (*RedisDriver) MSetNX

func (dri *RedisDriver) MSetNX(keys ...string) (int64, *ratomic.DriverError)

Jump to

Keyboard shortcuts

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