You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@1819997197 did you try with master branch? I think that's already fixed. Just go get -u github.com/kataras/iris/v12@master in your project's path and re-run the application.
problem: Error in modifying cookie and session validity (Driver:redis.Radix())
Use example:
func main() {
db := redis.New(redis.Config{
Network: "tcp",
Addr: "10.11.0.116:6379",
Timeout: time.Duration(30) * time.Second,
MaxActive: 10,
Password: "",
Database: "",
Prefix: "web:",
Delim: "-",
Driver: redis.Radix(), // redis.Radix() can be used instead.
})
// Close connection when control+C/cmd+C
iris.RegisterOnInterrupt(func() {
db.Close()
})
app.Run(iris.Addr(":50050"), iris.WithoutServerError(iris.ErrServerClosed))
}
error info:
unable to update expiration, the key 'web:479a233d-a1d5-4a71-9cd7-1c5dde707354' was stored without ttl.
error file path:
github.com/kataras/iris/v12@v12.1.8/sessions/sessiondb/redis/driver_radix.go:169
update:
func (r *RadixDriver) updateTTLConn(key string, newSecondsLifeTime int64) error {
var reply int
//err := r.pool.Do(radix.FlatCmd(&reply, "EXPIRE", r.Config.Prefix+key, newSecondsLifeTime))
err := r.pool.Do(radix.FlatCmd(&reply, "EXPIRE", key, newSecondsLifeTime))
if err != nil {
return err
}
// ......
}
The text was updated successfully, but these errors were encountered: