/readygo

A redis client in golang

Primary LanguageGoApache License 2.0Apache-2.0

readygo

a redis client for golang

Document

Getting Started

    config := &redis.Config{
        Password:    "123456", // passworf of redis, set "" as no auth
        Database:    10,
        PoolMaxIdle: 10, // capacity of connection pool
    }
    redis, _ = redis.Dial(config)

    // PING when take connection from the pool
    redis.PingOnPool()

    message, _ := redis.Execute("SET", "abc", "demo")

    message.String()

more introduce about the message : redis-protocol