You are here

protected function RedisPrefixTrait::getPrefix in Redis 8

Get prefix

Return value

string

12 calls to RedisPrefixTrait::getPrefix()
CacheBase::getKey in src/Cache/CacheBase.php
Return the key for the given cache key.
PhpRedis::clear in src/Flood/PhpRedis.php
Makes the flood control mechanism forget an event for the current visitor.
PhpRedis::getKey in src/Lock/PhpRedis.php
Generate a redis key name for the current lock name.
PhpRedis::isAllowed in src/Flood/PhpRedis.php
Checks whether a user is allowed to proceed with the specified event.
PhpRedis::register in src/Flood/PhpRedis.php
Registers an event for the current visitor to the flood control mechanism.

... See full list

File

src/RedisPrefixTrait.php, line 82

Class

RedisPrefixTrait

Namespace

Drupal\redis

Code

protected function getPrefix() {
  if (!isset($this->prefix)) {
    $this->prefix = $this
      ->getDefaultPrefix();
  }
  return $this->prefix;
}