public function setMany(array $data, $lifetime = null, $tags = null) {
		$backend = $this->getBackend();
		
		if ($tags !== null) {
			if (! $backend instanceof TaggableInterface) {
				throw new NoTagsSupported('Unable to set the data with the tag(s) due to the tags does not supported by the backend "' . get_class($backend) . '"');
			}
			
			if (is_array($tags)) {
				$tags = array_map([$this, 'prepareId'], $tags);
			} else {
				$tags = $this->prepareId($tags);
			}
		}
		
		$ids  = array_map([$this, 'prepareId'], array_keys($data));
		$data = array_combine($ids, array_values($data));
		
		if ($lifetime === null) {
			$lifetime = $this->_defaultLifetime;
		}
		
		return $backend->setMany($data, $lifetime, $tags);
	}
public function setMany(array $data, $lifetime = null, $tags = null) {
		$backend = $this->getBackend();
		
		if ($tags !== null) {
			if (! $backend instanceof TaggableInterface) {
				throw new NoTagsSupported('Unable to set the data with the tag(s) due to the tags does not supported by the backend "' . get_class($backend) . '"');
			}
			
			if (is_array($tags)) {
				$tags = array_map([$this, 'prepareId'], $tags);
			} else {
				$tags = $this->prepareId($tags);
			}
		}
		
		$ids  = array_map([$this, 'prepareId'], array_keys($data));
		$data = array_combine($ids, array_values($data));
		
		if ($lifetime === null) {
			$lifetime = $this->_defaultLifetime;
		}
		
		return $backend->setMany($data, $lifetime, $tags);
	}
public function setMany ( array $ data , $ lifetime = null , $ tags = null ) { $ backend = $ this -> getBackend ( ) ; if ( $ tags !== null ) { if ( ! $ backend instanceof TaggableInterface ) { throw new NoTagsSupported ( 'Unable to set the data with the tag(s) due to the tags does not supported by the backend "' . get_class ( $ backend ) . '"' ) ; } if ( is_array ( $ tags ) ) { $ tags = array_map ( [ $ this , 'prepareId' ] , $ tags ) ; } else { $ tags = $ this -> prepareId ( $ tags ) ; } } $ ids = array_map ( [ $ this , 'prepareId' ] , array_keys ( $ data ) ) ; $ data = array_combine ( $ ids , array_values ( $ data ) ) ; if ( $ lifetime === null ) { $ lifetime = $ this -> _defaultLifetime ; } return $ backend -> setMany ( $ data , $ lifetime , $ tags ) ; }
Set the many of the data

@param  array          $data     [id => data]
@param  int            $lifetime seconds
@param  string | array $tags
@return Wrapper
@throws NoTagsSupported
Set the many of the data