Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
115b1d03
authored
2013-08-09 23:41:03 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix #138
1 parent
0833d4ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
session/sess_redis.go
session/sess_redis.go
View file @
115b1d0
...
...
@@ -22,12 +22,11 @@ func (rs *RedisSessionStore) Set(key, value interface{}) error {
}
func
(
rs
*
RedisSessionStore
)
Get
(
key
interface
{})
interface
{}
{
//v, err := rs.c.Do("GET", rs.sid, key)
v
,
err
:=
redis
.
String
(
rs
.
c
.
Do
(
"HGET"
,
rs
.
sid
,
key
))
reply
,
err
:=
rs
.
c
.
Do
(
"HGET"
,
rs
.
sid
,
key
)
if
err
!=
nil
{
return
nil
}
return
v
return
reply
}
func
(
rs
*
RedisSessionStore
)
Delete
(
key
interface
{})
error
{
...
...
@@ -56,7 +55,7 @@ func (rp *RedisProvider) connectInit() redis.Conn {
}
return c*/
//if redisPool == nil {
redisPool
=
make
(
chan
redis
.
Conn
,
MAX_POOL_SIZE
)
redisPool
=
make
(
chan
redis
.
Conn
,
MAX_POOL_SIZE
)
//}
if
len
(
redisPool
)
==
0
{
go
func
()
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment