It appears that the Cache facade in Laravel doesn't allow you to get all the keys that are currently being cached in Redis.
I want to create an endpoint so I can retrieve this info and know if my entries are working properly.
I tried using the Redis facade with no success using the following commands and their respective errors
Redis::keys("*");
"Cannot use 'KEYS' with redis-cluster."
Redis::scan("cursor");
"Cannot use 'SCAN' with redis-cluster."
In Redis, cluster, scan is recommended over key if you have lots of keys. However, you should use it correctly. Try using this way.
Reference: Laravel and redis scan