{"modulePath":"github.com/KouKouChan/CSO2-Server","version":"v0.8.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package redis\n\n## Functions\n\n```go\nfunc InitRedis(addr string) (redis.Conn, error)\n```\n\n```go\nfunc RedisDelV(Redis redis.Conn, key string) bool\n```\nRedisDelV 删除value\n\n```go\nfunc RedisFlush(Redis redis.Conn) bool\n```\nRedisFlush 清除缓存\n\n```go\nfunc RedisGetV(Redis redis.Conn, key string) (string, error)\n```\nRedisGetV 获取value\n\n```go\nfunc RedisGetVBytes(Redis redis.Conn, key string) ([]byte, error)\n```\nRedisGetV 获取value\n\n```go\nfunc RedisIsExist(Redis redis.Conn, key string) bool\n```\nRedisIsExist 判断是否存在\n\n```go\nfunc RedisListGetWithRange(Redis redis.Conn, key, range1, range2 string) (interface{}, bool)\n```\nRedisListGetWithRange 从列表里获取指定范围的数据\n\n```go\nfunc RedisListPush(Redis redis.Conn, key string, value interface{}) bool\n```\nRedisListPush 往列表里插入数据\n\n```go\nfunc RedisSetKeyTime(Redis redis.Conn, key, seconds string) bool\n```\nRedisSetKeyTime 设置过期时间\n\n```go\nfunc RedisSetV(Redis redis.Conn, key string, value interface{}) bool\n```\nRedisSetV 设置value\n\n```go\nfunc RedisSetVNX(Redis redis.Conn, key string, value interface{}) bool\n```\nRedisSetVNX 如果不存在则设置value\n\n```go\nfunc RedisSetVWithTime(Redis redis.Conn, key string, value interface{}, seconds string) bool\n```\nRedisSetVWithTime 设置value和过期时间\n\n```go\nfunc RedisSetVWithTimeNX(Redis redis.Conn, key string, value interface{}, seconds string) bool\n```\nRedisSetVWithTimeNX 如果不存在则设置value和过期时间\n\n","path":"github.com/KouKouChan/CSO2-Server/database/redis","name":"redis","synopsis":"","isRedistributable":true}
