rename package name & fix bug

This commit is contained in:
jianzhiyao
2022-04-27 23:05:08 +08:00
parent 6fffb3196f
commit 978b7e4a9d
91 changed files with 231 additions and 251 deletions

4
cache/README.md vendored
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/astaxie/beego/cache
go get github.com/beego/beego/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/astaxie/beego/cache"
"github.com/beego/beego/cache"
)
Then init a Cache (example with memory adapter)

2
cache/cache.go vendored
View File

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

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/astaxie/beego/cache/memcache"
// "github.com/astaxie/beego/cache"
// _ "github.com/beego/beego/cache/memcache"
// "github.com/beego/beego/cache"
// )
//
// bm, err := cache.NewCache("memcache", `{"conn":"127.0.0.1:11211"}`)
@@ -35,7 +35,7 @@ import (
"strings"
"time"
"github.com/astaxie/beego/cache"
"github.com/beego/beego/cache"
"github.com/bradfitz/gomemcache/memcache"
)

View File

@@ -21,7 +21,7 @@ import (
"testing"
"time"
"github.com/astaxie/beego/cache"
"github.com/beego/beego/cache"
)
func TestMemcacheCache(t *testing.T) {

View File

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

View File

@@ -19,7 +19,7 @@ import (
"testing"
"time"
"github.com/astaxie/beego/cache"
"github.com/beego/beego/cache"
"github.com/gomodule/redigo/redis"
)

2
cache/ssdb/ssdb.go vendored
View File

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

View File

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