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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -