redis

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CategoryKey trace_redis.RedisKeys = "category:%s" // id
	// LockRegisterNameKey login register key
	LockRegisterNameKey trace_redis.RedisKeys = "login:register:%s" // id

	LoginUidKey trace_redis.RedisKeys = "login:%d"
	ShelfUidKey trace_redis.RedisKeys = "shelf:%d"
	FeedUidKey  trace_redis.RedisKeys = "feed:%d"

	CommentUidKey trace_redis.RedisKeys = "comment:%d"
)
View Source
var (
	Others = map[string]*trace_redis.RedisInstance{}
)

Functions

func GetClientByName

func GetClientByName(name string) *trace_redis.RedisInstance

func Init

func Init(names ...string)

func LoadOthersDB

func LoadOthersDB(name string, db int) *trace_redis.RedisInstance

func LoadOthersNew

func LoadOthersNew(name string) *trace_redis.RedisInstance

Types

This section is empty.

Jump to

Keyboard shortcuts

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