Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

FileCacheBackendInterface.php

Namespace

Drupal\Component\FileCache

File

core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php

View source
<?php

namespace Drupal\Component\FileCache;


/**
 * Defines an interface inspired by APCu for FileCache backends.
 */
interface FileCacheBackendInterface {
    
    /**
     * Fetches data from the cache backend.
     *
     * @param array $cids
     *   The cache IDs to fetch.
     *
     * @return array
     *   An array containing cache entries keyed by cache ID.
     */
    public function fetch(array $cids);
    
    /**
     * Stores data into a cache backend.
     *
     * @param string $cid
     *   The cache ID to store data to.
     * @param mixed $data
     *   The data to store.
     */
    public function store($cid, $data);
    
    /**
     * Deletes data from a cache backend.
     *
     * @param string $cid
     *   The cache ID to delete.
     */
    public function delete($cid);

}

Interfaces

Title Deprecated Summary
FileCacheBackendInterface Defines an interface inspired by APCu for FileCache backends.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal