redis

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisUID

func NewRedisUID() uid.UID

NewRedisUID - create new uid with default collection name.

Types

type UID

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

UID - Redis uuid gen

func (*UID) Close

func (r *UID) Close() error

Close - close connection

func (*UID) HasInt32

func (r *UID) HasInt32() bool

HasInt32 - has int32 uid

func (*UID) NextUID32

func (r *UID) NextUID32() int32

NextUID32 - next int32 uid

func (*UID) NextUID64

func (r *UID) NextUID64() int64

NextUID64 - next int64 uid

func (*UID) StartAndGC

func (r *UID) StartAndGC(config uid.Config) error

StartAndGC start uid adapter. config is like {"conn":"127.0.0.1:6379"} so no gc operation.

Jump to

Keyboard shortcuts

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