getMaxRowsForBin example

/** * Gets DatabaseBackend for the specified cache bin. * * @param $bin * The cache bin for which the object is created. * * @return \Drupal\Core\Cache\DatabaseBackend * The cache backend object for the specified cache bin. */
  public function get($bin) {
    $max_rows = $this->getMaxRowsForBin($bin);
    return new DatabaseBackend($this->connection, $this->checksumProvider, $bin$max_rows);
  }

  /** * Gets the max rows for the specified cache bin. * * @param string $bin * The cache bin for which the object is created. * * @return int * The maximum number of rows for the given bin. Defaults to * DatabaseBackend::DEFAULT_MAX_ROWS. */
Home | Imprint | This part of the site doesn't use cookies.