Redis keys not shown while using Cache facade in Laravel
问题 I'm using Laravel Cache facade, and the CACHE_DRIVER=redis . All data is saved in Redis successfully, but when I use redis-cli and run keys* there are not keys! When using the command flushall in redis-cli it loads the data again from the database, so that means the keys are already stored in Redis. 回答1: Redis has 16 databases indexed 0 - 15. The default database index is 0 , so when you run redis commands without specifying the database index, you're only running commands against database