public function save($id, $data, $lifetime = null, $tag = null, $bypass_control = false)
    {
        $lifetime = $this->getLifeTime($lifetime);

        if (false === $this->_cache->set($id, (is_array($data) ? $data : ''.$data), $lifetime)) {
            return $this->_onError('save');
        }

        if (null !== $tag) {
            $this->saveTag($id, $tag);
        }

        return true;
    }
public function save($id, $data, $lifetime = null, $tag = null, $bypass_control = false)
    {
        $lifetime = $this->getLifeTime($lifetime);

        if (false === $this->_cache->set($id, (is_array($data) ? $data : ''.$data), $lifetime)) {
            return $this->_onError('save');
        }

        if (null !== $tag) {
            $this->saveTag($id, $tag);
        }

        return true;
    }
public function save ( $ id , $ data , $ lifetime = null , $ tag = null , $ bypass_control = false ) { $ lifetime = $ this -> getLifeTime ( $ lifetime ) ; if ( false === $ this -> _cache -> set ( $ id , ( is_array ( $ data ) ? $ data : '' . $ data ) , $ lifetime ) ) { return $ this -> _onError ( 'save' ) ; } if ( null !== $ tag ) { $ this -> saveTag ( $ id , $ tag ) ; } return true ; }
Saves some string datas into a cache record.

@param string $id       Cache id
@param string $data     Datas to cache
@param int    $lifetime Optional, the specific lifetime for this record
(by default null, infinite lifetime)
@param string $tag      Optional, an associated tag to the data stored

@return boolean TRUE if cache is stored FALSE otherwise
Saves some string datas into a cache record .