src/Spiritix/LadaCache/Invalidator.php
public function invalidate(array $tags)
    {
        $hashes = $this->getHashes($tags);

        // Prefix tags in order to delete them
        foreach ($tags as $key => $tag) {
            $tags[$key] = $this->redis->prefix($tag);
        }

        $this->deleteItems($hashes);
        $this->deleteItems($tags);

        return $hashes;
    }
public function invalidate(array $tags)
    {
        $hashes = $this->getHashes($tags);

        // Prefix tags in order to delete them
        foreach ($tags as $key => $tag) {
            $tags[$key] = $this->redis->prefix($tag);
        }

        $this->deleteItems($hashes);
        $this->deleteItems($tags);

        return $hashes;
    }
public function invalidate ( array $ tags ) { $ hashes = $ this -> getHashes ( $ tags ) ; // Prefix tags in order to delete them foreach ( $ tags as $ key => $ tag ) { $ tags [ $ key ] = $ this -> redis -> prefix ( $ tag ) ; } $ this -> deleteItems ( $ hashes ) ; $ this -> deleteItems ( $ tags ) ; return $ hashes ; }
Invalidates all items in the cache having at least one of the given tags.

Requests the affected items (hashes) from the storage for all tags provided.
Afterwards simply deletes all items and all tag sets.

@param array $tags

@return array The hashes that were invalidated
Invalidates all items in the cache having at least one of the given tags .