Back to RedisStorage class

Method remove

public bool
remove
(mixed $id, mixed $group)
Remove a cached data entry by ID and group
Parameters
  • string $id The cache data ID
  • string $group The cache data group
Returns
  • bool
Since
  • 3.4
Class: RedisStorage
Project: Joomla

Method remove - Source code

/**
 * Remove a cached data entry by ID and group
 *
 * @param   string  $id     The cache data ID
 * @param   string  $group  The cache data group
 *
 * @return  boolean
 *
 * @since   3.4
 */
public function remove($id, $group)
{
    if (static::isConnected() == false) {
        return false;
    }
    return (bool) static::$_redis->del($this->_getCacheId($id, $group));
}