public function setMultiple($cache)
    {
        foreach ($cache as $value) {
            $this->set($value['key'], $value['value'], $value['ttl']);
        }

        return $this;
    }
public function setMultiple($cache)
    {
        foreach ($cache as $value) {
            $this->set($value['key'], $value['value'], $value['ttl']);
        }

        return $this;
    }
public function setMultiple ( $ cache ) { foreach ( $ cache as $ value ) { $ this -> set ( $ value [ 'key' ] , $ value [ 'value' ] , $ value [ 'ttl' ] ) ; } return $ this ; }
Save multiple items to cache.

@param (array) $cache [key=>keyVal,value=> val,ttl=>ttl]

@since 3.0.0

@return object
Save multiple items to cache .