Laravel - Cache - Removing Items From The Cache

You may remove items from the cache using the forget method:


You may also remove items by providing a zero or negative number of expiration seconds:

    Cache::put('key', 'value', 0);
    Cache::put('key', 'value', -5);

You may clear the entire cache using the flush method:

Flushing the cache does not respect your configured cache "prefix" and will remove all entries from the cache. Consider this carefully when clearing a cache which is shared by other applications.