Sha256: abb7e6e4675ad2772a9c589bfcb63c019bda59690a17dc774d0a20cd4cedbf11
Contents?: true
Size: 638 Bytes
Versions: 24
Compression:
Stored size: 638 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs module Redis # # Class List provides convenient access to redis hashes # # @author Mikael Henriksson <mikael@zoolutions.se> # class List < Entity # # Entries in this list # # # @return [Array<Object>] the elements in this list # def entries redis { |conn| conn.lrange(key, 0, -1) } end # # The number of entries in this list # # # @return [Integer] the total number of entries # def count redis { |conn| conn.llen(key) } end end end end
Version data entries
24 entries across 24 versions & 1 rubygems