README.md in suo-0.3.2 vs README.md in suo-0.3.3
- old
+ new
@@ -70,9 +70,18 @@
suo.refresh(token)
end
end
```
+### Time To Live
+
+```ruby
+Suo::Client::Redis.new("bar_resource", ttl: 60) #ttl in seconds
+```
+
+A key representing a set of lockable resources is removed once the last resource lock is released and the `ttl` time runs out. When another lock is acquired and the key has been removed the key has to be recreated.
+
+
## TODO
- more race condition tests
## History