Skip to content

ttacon/rpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpp

rpp is a helper library for creating a Redis Pool (that is prepared).

Usage

const (
    MAX_ACTIVE = 5
    MAX_IDLE   = 5
)

var (
    err error
    rpp *redis.Pool
)

if rpp, err = RPP("redis://x:foo@10.10.10.10:8443/5", MAX_ACTIVE, MAX_IDLE); err != nil {
    fmt.Println("There was an error, err: ", err)
    return
}

conn := rpp.Get()

_, _ = conn.Do("HGETALL", "data:foo")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages