# README
redis
GoFrame gredis.Adapter
implements using go-redis
.
Installation
go get -u github.com/gogf/gf/contrib/nosql/redis/v2
Commonly imported at top of main.go
:
package main
import (
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
// Other imported packages.
)
func main() {
// Main logics.
}
# Functions
New creates and returns a redis adapter using go-redis.
# Structs
Conn manages the connection operations.
GroupGeneric provides generic functions of redis.
GroupHash is the redis group object for hash operations.
GroupList is the redis group list object.
GroupPubSub provides pub/sub functions for redis.
GroupScript provides script functions for redis.
GroupSet provides set functions for redis.
GroupSortedSet provides sorted set functions for redis.
GroupString is the function group manager for string operations.
Redis is an implement of Adapter using go-redis.