def del(pattern = SCAN_PATTERN, count = 0)
      raise ArgumentError, "Please provide a number of keys to delete greater than zero" if count.zero?

      pattern = suffix(pattern)

      log_debug { "Deleting keys by: #{pattern}" }
      keys, time = timed { keys(pattern, count) }
      key_size   = keys.size
      log_debug { "#{key_size} keys found in #{time} sec." }
      _, time = timed { batch_delete(keys) }
      log_debug { "Deleted #{key_size} keys in #{time} sec." }

      key_size
    end
def del(pattern = SCAN_PATTERN, count = 0)
      raise ArgumentError, "Please provide a number of keys to delete greater than zero" if count.zero?

      pattern = suffix(pattern)

      log_debug { "Deleting keys by: #{pattern}" }
      keys, time = timed { keys(pattern, count) }
      key_size   = keys.size
      log_debug { "#{key_size} keys found in #{time} sec." }
      _, time = timed { batch_delete(keys) }
      log_debug { "Deleted #{key_size} keys in #{time} sec." }

      key_size
    end
Deletes unique keys from redis

 @param [String] pattern a pattern to scan for in redis
 @param [Integer] count the maximum number of keys to delete
 @return [Integer] the number of keys deleted