208 questions
0
votes
1
answer
71
views
AWS ECS Docker automatic environment variables injections
I will share my experience about a crazy problem on one application that I manage, that is a Laravel application publish on AWS ECS, that need to use a shared redis to store sessions and developers ...
1
vote
0
answers
220
views
how to avoid "connection reset by peer" connecting to serverless elasticache
We had a 1 hour window where a small percentage of requests failed intermittently across multiple different servers all with RedisCluster::get(): SSL: Connection reset by peer when trying to connect ...
1
vote
2
answers
407
views
php redis module and php compile mismatch
I am trying to install php-redis via pecl.
Running this:
php -i | grep API
gives this: PHP API => 20220829
I then run pecl install redis and I get the message:
...
running: phpize
Configuring for:
...
0
votes
1
answer
909
views
Can't install php7.1-redis on Ubuntu 24.04 (and some other extensions)
I am newbee here, sorry if the question is stupid
I'm trying to install php7.1-redis on Ubuntu 24.04, but I'm getting the following errors:
E: Unable to locate package php7.1-redis
E: Couldn't find ...
1
vote
0
answers
362
views
need help trying to get php laravel implementation for redis when using azure redis for cache and clustering
I have recently started with laravel and php and implemented redis using predis for a single node redis server ( using azure redis for cache ).
All was good until we decided to upgrade and turn ...
-2
votes
2
answers
3k
views
How do I install Redis and the phpredis extension in Laravel?
The Laravel documentation recommends using the phpredis PHP extension instead of the predis package due to having better performance, which PHP extensions generally seem to at the cost of a more ...
0
votes
1
answer
1k
views
PHP Laravel - Redis connection using URL wirh user and pass
I'm trying to do a PHP Redis connection. I explored the phpredis and the predis packages and didn't find a way to include the username and password URL connection string.
This is because I receive a ...
0
votes
2
answers
3k
views
Laravel 10 - phpredis with sentinels possible?
I'm looking into a way to setup Redis HA using Sentinels, and am looking into drivers that will work with laravel and laravel/horizon for job scheudling. I've been looking into solutions on google - ...
2
votes
1
answer
1k
views
Laravel Redis class not found in sail installation
I discovered an issue with our Laravel project during a fresh installation. When I cloned the entire project and created the env file, I proceeded to install Sail containers and the existing Composer ...
1
vote
0
answers
1k
views
php-redis with serializer igbinary - PHP Fatal error
lighttpd 1.4.69, PHP-fpm 8.2.3, debian 11, 10.5.18-MariaDB,
php-redis 5.3.7 - compression lz4
All packages are installed via apt
object cache pro wordpress plugin
php info
igbinary support - enabled ...
2
votes
1
answer
3k
views
Unable to Connect to Redis (TLS) with Laravel, but TCP works fine
I'm using Upstash Redis with TLS connection, but I'm always getting connection lost, redis exception, timed out 2 minutes, when trying to connect to Redis. If I use TCP, it works fine.
Using localhost,...
2
votes
0
answers
280
views
Cache javascript and css On redis
I am using redis for cache.
Is caching of javascript and css possible in redis server?
I am trying to cache my css file in redis
0
votes
0
answers
223
views
How to fix `Class 'Predis\Client'` not found in drupal?
I have a project based on drupal 6. I installed php5.6 and redis and php-redis on ubuntu.
Now, when I run my project, faced 'Class 'Predis\Client' not found in'.
also my redis config in setting file ...
1
vote
1
answer
6k
views
How to Resolve Predis Connection Timeout
i'm using predis integrated with laravel, in some case predis got connection timeout, but when i'm trying to connect redis server via cli, i got connected perfectly
can anyone help me how to resolve ...
36
votes
7
answers
70k
views
Class "Redis" Not Found laravel 8, using phpredis
I am using laravel 8, and it is throwing error, when ever I tried to run:
php artsian config:clear
On laravel, this is my config value (because I am trying to use phpredis):
'client' => env('...
1
vote
1
answer
8k
views
phpredis returns "Couldn't map cluster keyspace using any provided seed" error
phpredis returns "Couldn't map cluster keyspace using any provided seed" error when trying to connect to AWS ElasticCache for Redis cluster with tls/ssl turned on.
Everything is working fine ...
1
vote
2
answers
4k
views
Redis Design Pattern: Supporting data pagination, sorting, filtering and searching
I have an application where the backend data store is Redis. This application (interface) provides users with a table that must support searching, pagination, sorting and filtering.
My Redis design ...
0
votes
2
answers
3k
views
Installing php5.6-redis on Ubuntu 16.04
We are upgrading from ubuntu 14 to ubuntu 16, but are encountering problems installing php-redis. We're trying to get php-redis for php 5.6 but php-redis for php8.0 is being installed instead. When ...
1
vote
0
answers
2k
views
Why Redis performance is slow?
I have a PHP app with 200 req/sec with a session table on MySQL with lastactivity, so I have to update it on every request. This keeps our MySQL server really busy so I decided to use REDIS to store ...
2
votes
1
answer
6k
views
Laradock - PHP Redis extension is installed and enabled
i'm trying to enable Horizon on Laradock but i always received this message "Please make sure the PHP Redis extension is installed and enabled"
I've accessed to Workspace container to check ...
1
vote
0
answers
1k
views
Mac OS Big Sur redis.so: mach-o, but wrong architecture MAMP
I have installed redis on my mac Big Sur 11.0.1 and also, I have installed MAMP. Now, I am trying to add phpredis as redis extension but I am having php error while loading redis.so file which I ...
2
votes
1
answer
2k
views
issue connecting Heroku PHP stack to Redis using Predis
Hope someone can help with this as a new install of PHP and Heroku Redis
This is the error I'm getting:-
2020-12-14T19:46:37.368544+00:00 app[web.1]: [14-Dec-2020 19:46:37 UTC] PHP Warning: ...
0
votes
0
answers
1k
views
Connecting to Redis, with phpredis, takes 20ms
Windows / Using XAMPP / PHP version 7.4.11 / php_redis.dll Thread Safe for PHP 7.4 / Redis runs with command prompt
Connecting to Redis in my PHP application with $redis->pconnect('127.0.0.1', '...
2
votes
1
answer
4k
views
Laravel Redis Jobs are not Being Queued
I am using Laravel with Phpredis and I've created a webhook that adds a job to the queue. I've followed the docs for the interrogation but my jobs are not being queued.
.env
QUEUE_CONNECTION=redis
...
2
votes
1
answer
361
views
php redis session save handler extending function gc (garbage collection)
Is there a way to extend phpredis session.save handler to call a function when garbage collection happens?
ini_set('session.save_handler','redis');
//code to set an additional gc ...