You are here

protected function CacheBackendDecorator::decorate in Multiversion 8

Helper method to decorate a cache ID.

Parameters

string $cid:

Return value

string

7 calls to CacheBackendDecorator::decorate()
CacheBackendDecorator::delete in src/CacheBackendDecorator.php
Deletes an item from the cache.
CacheBackendDecorator::deleteMultiple in src/CacheBackendDecorator.php
Deletes multiple items from the cache.
CacheBackendDecorator::get in src/CacheBackendDecorator.php
Returns data from the persistent cache.
CacheBackendDecorator::getMultiple in src/CacheBackendDecorator.php
Returns data from the persistent cache when given an array of cache IDs.
CacheBackendDecorator::invalidate in src/CacheBackendDecorator.php
Marks a cache item as invalid.

... See full list

File

src/CacheBackendDecorator.php, line 37

Class

CacheBackendDecorator

Namespace

Drupal\multiversion

Code

protected function decorate($cid) {
  return "{$cid}:" . $this->workspaceManager
    ->getActiveWorkspaceId();
}