def get(options = {})
      lower = nil
      upper = nil

      if options[:in].nil?
        lower = options[:after].nil? ? '-inf' : coerce_time_milli(options[:after])
        upper = options[:before].nil? ? '+inf' : [0, coerce_time_milli(options[:before])].max
      else
        lower = coerce_time_milli(options[:in].begin)
        upper = coerce_time_milli(options[:in].end)
        upper = "(#{upper}" if options[:in].exclude_end?
      end

      argv = [expires_at, lower, upper]

      unless options[:limit].nil?
        limit = options[:limit].to_i
        raise ArgumentError, 'limit must be positive' unless limit.positive?
        argv.push(limit, [0, options[:offset].to_i].max)
      end

      events = get_script(keys: @event_list.key, argv: argv)
      return events.map(&method(:remove_event_id))
    end
def get(options = {})
      lower = nil
      upper = nil

      if options[:in].nil?
        lower = options[:after].nil? ? '-inf' : coerce_time_milli(options[:after])
        upper = options[:before].nil? ? '+inf' : [0, coerce_time_milli(options[:before])].max
      else
        lower = coerce_time_milli(options[:in].begin)
        upper = coerce_time_milli(options[:in].end)
        upper = "(#{upper}" if options[:in].exclude_end?
      end

      argv = [expires_at, lower, upper]

      unless options[:limit].nil?
        limit = options[:limit].to_i
        raise ArgumentError, 'limit must be positive' unless limit.positive?
        argv.push(limit, [0, options[:offset].to_i].max)
      end

      events = get_script(keys: @event_list.key, argv: argv)
      return events.map(&method(:remove_event_id))
    end
Returns data points from within a given time range.
 @param [Hash] options
 @option options [Time] :before optional upper bound to select events (inclusive)
 @option options [Time] :after optional lower bound to select events (inclusive)
 @option options [Range<Time>] :in optional range of time to select events (has priority over after/before)
 @option options [Integer] :limit maximum number of events to return
 @option options [Integer] :offset offset in the list (use in conjunction with limit for pagination)