Back to RedisStorage class

Method get

public mixed
get
(mixed $id, mixed $group, mixed $checkTime = true)
Get cached data by ID and group
Parameters
  • string $id The cache data ID
  • string $group The cache data group
  • bool $checkTime True to verify cache time expiration threshold
Returns
  • mixed Boolean false on failure or a cached data object
Since
  • 3.4
Class: RedisStorage
Project: Joomla

Method get - Source code

/**
 * Get cached data by ID and group
 *
 * @param   string   $id         The cache data ID
 * @param   string   $group      The cache data group
 * @param   boolean  $checkTime  True to verify cache time expiration threshold
 *
 * @return  mixed  Boolean false on failure or a cached data object
 *
 * @since   3.4
 */
public function get($id, $group, $checkTime = true)
{
    if (static::isConnected() == false) {
        return false;
    }
    return static::$_redis->get($this->_getCacheId($id, $group));
}