Module: RedisQueuedLocks::Acquirer::IsQueued Private
- Defined in:
- lib/redis_queued_locks/acquirer/is_queued.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.queued?(redis_client, lock_name) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 |
# File 'lib/redis_queued_locks/acquirer/is_queued.rb', line 13 def queued?(redis_client, lock_name) lock_key_queue = RedisQueuedLocks::Resource.prepare_lock_queue(lock_name) redis_client.call('EXISTS', lock_key_queue) == 1 end |