Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dxvgef committed Nov 15, 2019
1 parent 2d98fc2 commit c223ebc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.2
v0.4.3
1 change: 1 addition & 0 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func NewEngine(config *Config) (*Engine, error) {

// 将redis连接对象传入session管理器
engine.config = config

return &engine, nil
}

Expand Down
6 changes: 3 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ func (obj *Session) Set(key string, value interface{}) error {
}

// Get 读取参数值
func (obj *Session) Get(key string) Value {
func (obj *Session) Get(key string) *Value {
var result Value
result.Key = key
value, err := redisClient.HGet(obj.ID, key).Result()
if err != nil {
result.Error = err
return result
return nil
}
result.Value = value
return result
return &result
}

// String 将值转为string类型
Expand Down

0 comments on commit c223ebc

Please sign in to comment.