Is there any other faster way than EXISTS, to check if a key exists in redis or not? My problem is, I have over 1 million records in redis and I need to do a key_exists check. This should happen within 10ms. Any Ideas around this? Answer Using the EXISTS command is the fastest way, this should be extremely quick.
Tag: redis
How to get all pending jobs in laravel queue on redis?
The queue:listen was not run on a server, so some jobs were pushed (using Redis driver) but never run. How could I count (or get all) these jobs? I did not find any artisan command to get this information. Answer If someone is still looking for an answer, here is the way I did it: $connection is the Redis’ connection
Laravel Homestead Redis Port Forwarding
I’m having some trouble here trying to remotely connect to my local Homestead Redis server. I’m using both commandline (redis-cli) and RDM. I’m able to connect with Postgresql with PgAdmin in this …
Default to Laravel File cache if redis is down
In the spirit of “chaos monkey” I’m trying to ensure that a laravel application keeps going even when the services it depends on are down. It uses a DB for primary storage, and a redis cache. What I’d like to do is have it automatically fall back to the file cache if and when redis fails. I haven’t been able
Predis is giving ‘Error while reading line from server’
I am using predis, it’s subscribed to a channel and listening. It throws the following error (below) and dies after 60 secs exactly. It’s surely not my web servers error or its timeout. There is a similar issue being discussed here. Could not get much of it. I tried setting connection_timeout in predis conf file to 0, but doesn’t helps