Bundle/ViewReferenceBundle/Connector/Redis/ViewReferenceRedisTool.php
public function redislize($data)
    {
        // Only serialize if it's not a string or a integer
        if (!is_string($data) && !is_int($data)) {
            return urlencode(serialize($data));
        }
        // Encode string to escape wrong saves
        return urlencode($data);
    }
public function redislize($data)
    {
        // Only serialize if it's not a string or a integer
        if (!is_string($data) && !is_int($data)) {
            return urlencode(serialize($data));
        }
        // Encode string to escape wrong saves
        return urlencode($data);
    }
public function redislize ( $ data ) { // Only serialize if it's not a string or a integer if ( ! is_string ( $ data ) && ! is_int ( $ data ) ) { return urlencode ( serialize ( $ data ) ) ; } // Encode string to escape wrong saves return urlencode ( $ data ) ; }
This method generated a string that can be persisted for redis with data.

@param $data

@return string
This method generated a string that can be persisted for redis with data .