mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-12 16:52:28 +08:00
5
cache/redis.go
vendored
5
cache/redis.go
vendored
@@ -95,10 +95,7 @@ func (r *Redis) IsExist(key string) bool {
|
||||
|
||||
a, _ := conn.Do("EXISTS", key)
|
||||
i := a.(int64)
|
||||
if i > 0 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return i > 0
|
||||
}
|
||||
|
||||
//Delete 删除
|
||||
|
||||
Reference in New Issue
Block a user