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

package memcache

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

Package memcache for cache provider

depend on github.com/bradfitz/gomemcache/memcache

go install github.com/bradfitz/gomemcache/memcache

Usage: import(

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

)

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

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

Index

Package Files

memcache.go

func NewMemCache Uses

func NewMemCache() cache.Cache

NewMemCache create new memcache adapter.

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