beego: github.com/astaxie/beego/adapter/cache/redis Index | Files

package redis

import "github.com/astaxie/beego/adapter/cache/redis"

Package redis for cache provider

depend on github.com/gomodule/redigo/redis

go install github.com/gomodule/redigo/redis

Usage: import(

_ "github.com/astaxie/beego/cache/redis"
"github.com/astaxie/beego/cache"

)

bm, err := cache.NewCache("redis", `{"conn":"127.0.0.1:11211"}`)

more docs http://beego.me/docs/module/cache.md

Index

Package Files

redis.go

Variables

var (
    // DefaultKey the collection name of redis for cache adapter.
    DefaultKey = "beecacheRedis"
)

func NewRedisCache Uses

func NewRedisCache() cache.Cache

NewRedisCache create new redis cache with default collection name.

Package redis imports 2 packages (graph). Updated 2020-11-07. Refresh now. Tools for package owners.