How to delete all keys in Redis except ones which start with a prefix in Laravel

  caching, laravel, redis

I want to delete all the keys in redis except ones that start with:


I am able to clear all keys or specific keys starting with a prefix.

Can anyone advise how I could do this in Laravel?

Source: Laravel

Leave a Reply