docs: @Override
      public Long dbSize(byte[] pattern) {
          long dbSize = 0L;
          Jedis jedis = getJedis();
          try {
              ScanParams params = new ScanParams();
              params.count(count);
              params.match(pattern);
              byte[] cursor = ScanParams.SCAN_POINTER_START_BINARY;
              ScanResult<byte[]> scanResult;
              do {
                  scanResult = jedis.scan(cursor, params);
                  List<byte[]> results = scanResult.getResult();
                  for (byte[] result : results) {
                      dbSize++;
                  }
                  cursor = scanResult.getCursorAsBytes();
              } while (scanResult.getStringCursor().compareTo(ScanParams.SCAN_POINTER_START) > 0);
          } finally {
              jedis.close();
          }
          return dbSize;
      }