You are here

public function Redis_Cache_Base::getKey in Redis 7.2

Get full key name using the set prefix

Parameters

string ...: Any numer of strings to append to path using the separator

Return value

string

Overrides Redis_AbstractBackend::getKey

8 calls to Redis_Cache_Base::getKey()
Redis_Cache_PhpRedis::clearWithEval in lib/Redis/Cache/PhpRedis.php
Redis_Cache_PhpRedis::clearWithoutEval in lib/Redis/Cache/PhpRedis.php
Redis_Cache_PhpRedis::get in lib/Redis/Cache/PhpRedis.php
Returns data from the persistent cache.
Redis_Cache_PhpRedis::set in lib/Redis/Cache/PhpRedis.php
Stores data in the persistent cache.
Redis_Cache_Predis::clearWithEval in lib/Redis/Cache/Predis.php

... See full list

File

lib/Redis/Cache/Base.php, line 210

Class

Redis_Cache_Base
Because those objects will be spawned during boostrap all its configuration must be set in the settings.php file.

Code

public function getKey($cid = null) {
  if (null === $cid) {
    return parent::getKey($this->bin);
  }
  else {
    return parent::getKey($this->bin . ':' . $cid);
  }
}