Module: RedisQueuedLocks::Acquirer::Queues Private

Defined in:
lib/redis_queued_locks/acquirer/queues.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.

Since:

  • 1.0.0

Class Method Summary collapse

Class Method Details

.queues(redis_client, scan_size:, with_info:) ⇒ Set<String>, Set<Hash<Symbol,Any>>

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.

Parameters:

  • redis_client (RedisClient)
  • scan_size (Hash) —

    a customizable set of options

  • with_info (Hash) —

    a customizable set of options

Options Hash (scan_size:):

  • (Integer)

Options Hash (with_info:):

  • (Boolean)

Returns:

  • (Set<String>, Set<Hash<Symbol,Any>>)

Since:

  • 1.0.0



14
15
16
17
18
19
# File 'lib/redis_queued_locks/acquirer/queues.rb', line 14

def queues(redis_client, scan_size:, with_info:)
  redis_client.with do |rconn|
    lock_queues = scan_queues(rconn, scan_size)
    with_info ? extract_queues_info(rconn, lock_queues) : lock_queues
  end
end