mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
fix #138
This commit is contained in:
parent
0833d4baf8
commit
115b1d03db
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user