Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
7b0f3a83
Commit
7b0f3a83
authored
Sep 06, 2015
by
astaxie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1351 from leekchan/cache
Fix a wrong test name & update a outdated information in README
parents
34aa9002
fe1ec167
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
cache/README.md
+2
-2
memcache_test.go
cache/memcache/memcache_test.go
+1
-1
No files found.
cache/README.md
View file @
7b0f3a83
...
...
@@ -43,7 +43,7 @@ interval means the gc time. The cache will check at each time interval, whether
## Memcache adapter
Memcache adapter use the
vitess's
[
Memcache
](
http://code.google.com/p/vitess/go/
memcache
)
client.
Memcache adapter use the
[
gomemcache
](
http://github.com/bradfitz/go
memcache
)
client.
Configure like this:
...
...
@@ -52,7 +52,7 @@ Configure like this:
## Redis adapter
Redis adapter use the
[
redigo
](
http://github.com/garyburd/redigo
/redis
)
client.
Redis adapter use the
[
redigo
](
http://github.com/garyburd/redigo
)
client.
Configure like this:
...
...
cache/memcache/memcache_test.go
View file @
7b0f3a83
...
...
@@ -23,7 +23,7 @@ import (
"time"
)
func
Test
Redis
Cache
(
t
*
testing
.
T
)
{
func
Test
Memcache
Cache
(
t
*
testing
.
T
)
{
bm
,
err
:=
cache
.
NewCache
(
"memcache"
,
`{"conn": "127.0.0.1:11211"}`
)
if
err
!=
nil
{
t
.
Error
(
"init err"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment