class SidekiqUniqueJobs::Redis::List
Class List
provides convenient access to redis hashes
@author Mikael Henriksson <mikael@mhenrixon.com>
Public Instance Methods
Source
# File lib/sidekiq_unique_jobs/redis/list.rb, line 27 def count redis { |conn| conn.llen(key) } end
The number of entries in this list
@return [Integer] the total number of entries
Source
# File lib/sidekiq_unique_jobs/redis/list.rb, line 17 def entries redis { |conn| conn.lrange(key, 0, -1) } end
Entries in this list
@return [Array<Object>] the elements in this list