rename to v2

This commit is contained in:
Ming Deng
2020-12-14 11:12:00 +08:00
parent a70f7fc920
commit 7bc6010604
241 changed files with 489 additions and 489 deletions

View File

@@ -4,7 +4,7 @@ cache is a Go cache manager. It can use many cache adapters. The repo is inspire
## How to install?
go get github.com/beego/beego/cache
go get github.com/beego/beego/v2/cache
## What adapters are supported?
@@ -17,7 +17,7 @@ As of now this cache support memory, Memcache and Redis.
First you must import it
import (
"github.com/beego/beego/cache"
"github.com/beego/beego/v2/cache"
)
Then init a Cache (example with memory adapter)

View File

@@ -16,7 +16,7 @@
// Usage:
//
// import(
// "github.com/beego/beego/cache"
// "github.com/beego/beego/v2/cache"
// )
//
// bm, err := cache.NewCache("memory", `{"interval":60}`)

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/beego/beego/cache/memcache"
// "github.com/beego/beego/cache"
// _ "github.com/beego/beego/v2/cache/memcache"
// "github.com/beego/beego/v2/cache"
// )
//
// bm, err := cache.NewCache("memcache", `{"conn":"127.0.0.1:11211"}`)
@@ -39,7 +39,7 @@ import (
"github.com/bradfitz/gomemcache/memcache"
"github.com/beego/beego/client/cache"
"github.com/beego/beego/v2/client/cache"
)
// Cache Memcache adapter.

View File

@@ -24,7 +24,7 @@ import (
_ "github.com/bradfitz/gomemcache/memcache"
"github.com/beego/beego/client/cache"
"github.com/beego/beego/v2/client/cache"
)
func TestMemcacheCache(t *testing.T) {

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/beego/beego/cache/redis"
// "github.com/beego/beego/cache"
// _ "github.com/beego/beego/v2/cache/redis"
// "github.com/beego/beego/v2/cache"
// )
//
// bm, err := cache.NewCache("redis", `{"conn":"127.0.0.1:11211"}`)
@@ -40,7 +40,7 @@ import (
"github.com/gomodule/redigo/redis"
"github.com/beego/beego/client/cache"
"github.com/beego/beego/v2/client/cache"
)
var (

View File

@@ -24,7 +24,7 @@ import (
"github.com/gomodule/redigo/redis"
"github.com/stretchr/testify/assert"
"github.com/beego/beego/client/cache"
"github.com/beego/beego/v2/client/cache"
)
func TestRedisCache(t *testing.T) {

View File

@@ -11,7 +11,7 @@ import (
"github.com/ssdb/gossdb/ssdb"
"github.com/beego/beego/client/cache"
"github.com/beego/beego/v2/client/cache"
)
// Cache SSDB adapter

View File

@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/beego/beego/client/cache"
"github.com/beego/beego/v2/client/cache"
)
func TestSsdbcacheCache(t *testing.T) {