How to set a timeout when evaluating a script using redigo?

454 views Asked by At

I'm using redigo (github.com/gomodule/redigo/redis) to evaluting some lua scripts on redis.

However, I read the related GoDoc, I can't find any methods to set a timeout when evaluating a lua script using the redis.Script type. The Script.Do method call the conn.Do method, which doesn't set a timeout. Is there any methods that I can use to set a timeout limit when I'm evaluting a lua script?

0

There are 0 answers