class SidekiqUniqueJobs::Changelog

def entries(pattern: "*", count: nil)

Returns:
  • (Array) - an array of entries

Parameters:
  • count (Integer) -- the number of matches to return
  • pattern (String) -- the pattern to match
def entries(pattern: "*", count: nil)
  options = {}
  options[:match] = pattern if pattern
  options[:count] = count if count
  redis do |conn|
    conn.zscan_each(key, **options).to_a.map { |entry| load_json(entry[0]) }
  end
end