package
0.0.2
Repository: https://github.com/go-parrot/parrot.git
Documentation: pkg.go.dev

# Functions

Init init a default redis instance.
InitTestRedis 实例化一个可以用于单元测试的redis.
LoadConf load redis config.
NewCheckRepeat create a check repeat.
NewIDAlloc create a id alloc instance.
NewRedisManager create a redis manager.

# Constants

DefaultRedisName default redis name.
ErrRedisNotFound not exist in redis.
PrefixCheckRepeat check repeat key.
RepeatDefaultTimeout define default timeout.

# Variables

RedisClient redis 客户端.

# Structs

Config redis config.
IDAlloc id生成器 key 为业务key, 由业务前缀+功能前缀+具体场景id组成 比如生成用户id, 可以传入user_id, 完整示例: parrot:idalloc:user_id.
RedisManager define a redis manager nolint.

# Interfaces

CheckRepeat define interface.