Laravel - Cache - Storing Tagged Cache Items

Cache tags allow you to tag related items in the cache and then flush all cached values that have been assigned a given tag. You may access a tagged cache by passing in an ordered array of tag names. For example, let's access a tagged cache and put a value into the cache:

    
    Cache::tags(['people', 'artists'])->put('John', $john, $seconds);
    
    Cache::tags(['people', 'authors'])->put('Anne', $anne, $seconds);