mirror of
https://github.com/dkam/suo.git
synced 2025-01-29 07:42:43 +00:00
on second thought, remove confusing language
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Suo [](https://travis-ci.org/nickelser/suo) [](https://codeclimate.com/github/nickelser/suo) [](https://codeclimate.com/github/nickelser/suo) [](http://badge.fury.io/rb/suo)
|
||||
|
||||
:lock: Distributed locks using Memcached or Redis in Ruby.
|
||||
:lock: Distributed semaphores using Memcached or Redis in Ruby.
|
||||
|
||||
Suo provides a very performant distributed lock solution using Compare-And-Set (`CAS`) commands in Memcached, and `WATCH/MULTI` in Redis. It allows locking both single exclusion (a mutex - sharing one resource), and multiple resources.
|
||||
Suo provides a very performant distributed lock solution using Compare-And-Set (`CAS`) commands in Memcached, and `WATCH/MULTI` in Redis. It allows locking both single exclusion (like a mutex - sharing one resource), as well as multiple resources.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -70,10 +70,6 @@ suo.lock("foo") do |lock|
|
||||
end
|
||||
```
|
||||
|
||||
## Semaphore
|
||||
|
||||
With multiple resources, Suo acts like a semaphore, but is not strictly a semaphore according to the traditional definition, as the lock acquires ownership.
|
||||
|
||||
## TODO
|
||||
- more race condition tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user