public function save($id, $data, $lifetime = null)
    {
        if ($this->enabled) {
            if ($lifetime === null) {
                $lifetime = $this->getLifetime();
            }
            $this->driver->save($id, $data, $lifetime);
        }
    }
public function save($id, $data, $lifetime = null)
    {
        if ($this->enabled) {
            if ($lifetime === null) {
                $lifetime = $this->getLifetime();
            }
            $this->driver->save($id, $data, $lifetime);
        }
    }
public function save ( $ id , $ data , $ lifetime = null ) { if ( $ this -> enabled ) { if ( $ lifetime === null ) { $ lifetime = $ this -> getLifetime ( ) ; } $ this -> driver -> save ( $ id , $ data , $ lifetime ) ; } }
Stores a new cached entry.

@param  string       $id       the id of the cached entry
@param  array|object $data     the data for the cached entry to store
@param  int          $lifetime the lifetime to store the entry in seconds
Stores a new cached entry .