protected function getValue($key, $serializer = self::REDIS_SERIALIZER_NONE)
    {
        $value = $this->redis->get($key);

        if ($value && (self::REDIS_SERIALIZER_PHP === $serializer)) {
            $value = unserialize($value);
        }

        return $value;
    }
protected function getValue($key, $serializer = self::REDIS_SERIALIZER_NONE)
    {
        $value = $this->redis->get($key);

        if ($value && (self::REDIS_SERIALIZER_PHP === $serializer)) {
            $value = unserialize($value);
        }

        return $value;
    }
protected function getValue ( $ key , $ serializer = self :: REDIS_SERIALIZER_NONE ) { $ value = $ this -> redis -> get ( $ key ) ; if ( $ value && ( self :: REDIS_SERIALIZER_PHP === $ serializer ) ) { $ value = unserialize ( $ value ) ; } return $ value ; }
Retrieves an item from the Redis server.

@param string $key
@param int    $serializer

@return mixed
Retrieves an item from the Redis server .