CacheFactoryInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheFactoryInterface.php
  2. 8.9.x core/lib/Drupal/Core/Cache/CacheFactoryInterface.php
  3. 10 core/lib/Drupal/Core/Cache/CacheFactoryInterface.php

Namespace

Drupal\Core\Cache

File

core/lib/Drupal/Core/Cache/CacheFactoryInterface.php

View source
<?php

namespace Drupal\Core\Cache;


/**
 * An interface defining cache factory classes.
 */
interface CacheFactoryInterface {
    
    /**
     * Gets a cache backend class for a given cache bin.
     *
     * @param string $bin
     *   The cache bin for which a cache backend object should be returned.
     *
     * @return \Drupal\Core\Cache\CacheBackendInterface
     *   The cache backend object associated with the specified bin.
     */
    public function get($bin);

}

Interfaces

Title Deprecated Summary
CacheFactoryInterface An interface defining cache factory classes.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.