src/Directory.php
/**
     * Save a tag
     *
     * @param string $name The tag name
     * @param string[] $ids The list of cache keys associated to the tag
     */
Save a tag
@param string $name The tag name
@param string[] $ids The list of cache keys associated to the tag
Save a tag @param string $name The tag name @param string [] $ids The list of cache keys associated to the tag
protected function saveTag($name, $ids)
    {
        $ids = array_unique($ids);
        array_walk($ids, function(&$item) { $item = base64_encode($item); });
        $path = $this->getTagPath($this->mapTag($name));
        $this->buildPath(dirname($path));
        file_put_contents($path, implode(PHP_EOL, $ids), $this->getOption('locking') ? LOCK_EX : null);
    }
protected function saveTag ( $ name , $ ids ) { $ ids = array_unique ( $ ids ) ; array_walk ( $ ids , function ( & $ item ) { $ item = base64_encode ( $ item ) ; } ) ; $ path = $ this -> getTagPath ( $ this -> mapTag ( $ name ) ) ; $ this -> buildPath ( dirname ( $ path ) ) ; file_put_contents ( $ path , implode ( PHP_EOL , $ ids ) , $ this -> getOption ( 'locking' ) ? LOCK_EX : null ) ; }
Save a tag
 @param string $name The tag name
 @param string[] $ids The list of cache keys associated to the tag
Save a tag @param string $name The tag name @param string [] $ids The list of cache keys associated to the tag