servicestack Redis Client AcquireLock TTL has no affect -
we having problem servicestack redis client ttl property not working expect. when browse redis desktop manager see our lock key has no ttl value set.
do have recommendation ?
here sample code recommended:
using (var redismanager = new pooledredisclientmanager(dbindex, redisuri)) using (var redisclient = redismanager.getclient()) { return redisclient.acquirelock("locks:" + key, new timespan(0,1,0)); }
the timeout used within content of lock string calculate expired lock, i.e. doesn't change ttl of lock key.
Comments
Post a Comment