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 ...
0
votes
1
answer
219
views
How can I add retry behavior to the Laravel Redis client?
I'm using Laravel with phpredis and sometimes I get transient errors of the form SSL: Connection reset by peer. I'd like to configure Laravel to retry the command when this happens.
The current means ...
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
0
answers
110
views
Redis Latency Issues: High Response Time for Repeated Requests on WSL with phpredis
I am experiencing unexpected latency issues with Redis in my Laravel application. Here are the details:
Setup:
Redis Client: I am using the phpredis extension.
Environment: Redis is running on Windows ...
1
vote
2
answers
404
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:
...
1
vote
0
answers
42
views
Why is Laravel/PHPRedis issuing extra redis commands
I have a serverless redis-based Elasticache instance. I've configured Laravel to use redis as it's session driver and configured the pointed the redis connection at my Elasticache instance. I'm ...
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 ...
0
votes
0
answers
2k
views
Unable to install Redis Extension for PHP 8.3 MacOS using Homebrew
I am trying to install PHP-Redis extension in MacOS for PHP 8.3 using Homebrew but after installing I am getting this error.
/usr/local/Cellar/php/8.3.0/pecl/20230831/redis.so doesn't appear to be a ...
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 ...
0
votes
1
answer
325
views
PHP redis session handler - changing number of servers
I am using phpredis as a session handler (https://github.com/phpredis/phpredis).
My current connection string looks like this:
session.save_path = "tcp://10.0.1.11:7005?weight=1&timeout=0.2&...
-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
How do I store a JSON Value, with the rejson module in Redis using phpredis on Laravel
Normally when I json_encode and set a value in Redis it gets stored as a string. How do I store a value as JSON
I've tried the following :
$redisCon = Redis::connection('default');
$data = $redisCon-&...
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
1
answer
108
views
VectorField in redis schema in laravel
I am trying to create an index in redis with the following code
$schema = [
new NumericField('doc_id'),
new NumericField('entity_id'),
new VectorField('embedding', 'HNSW', ['DIM' => 768,...
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 - ...
7
votes
2
answers
16k
views
Redis.dll not found for php8.2
I am experiencing difficulties starting Redis 5.3.7 with PHP 8.2 on my Windows machine. When I attempt to start it, a dialog box displays with the message:
"The procedure entry point ...
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 ...
0
votes
0
answers
942
views
PHP phpredis error when trying to pass config options while instantiating Redis class
I have next setup:
PHP 8.1
Redis 7.0.11 - latest version
phpredis 5.3.7 - latest version
When I try to instantiate Redis class like this:
$redis = new Redis([
'host' => '127.0.0.1',
'port'...
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 ...
0
votes
1
answer
541
views
How to call KeyDB's EXPIREMEMBER method from PHP
I am working on replacing Redis with KeyDB in my application, in order to utilise the KeyDB EXPIREMEMBER feature. However, this method is not included with PHPRedis.
Is there a KeyDB drop-in ...
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,...
1
vote
0
answers
336
views
phpredis scan method laravel
Running my application inside a redis cluster and I stumbled about a strange issue:
dd(Redis::connection('default')->scan('0', [
'match' => 'my_application_cache_*',
'count' => 999,
])...
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
1
vote
0
answers
1k
views
Multiple redis connection with laravel and phpredis
How can I use different Redis connection with Laravel and phpredis, however, I followed the laravel documentation using-multiple-redis-connections but whenever I call this connection it always return ...
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 ...
0
votes
1
answer
422
views
Using PHP For Each to save individual results to Redis
I have some code running on my website that uses API calls to pull events from a calendar and show them on my website. The code is fairly simple overall, and works well, however to prevent the code ...
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 ...
0
votes
0
answers
434
views
Laravel log keeps giving Redis not found error while running
I am running on docker and nginx and Laravel log keeps giving redis not found error while running.
My Configurations:
file .env:
CACHE_DRIVER=redis
SESSION_DRIVER=redis
MEMCACHED_HOST=127.0.0.1
...
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('...
0
votes
1
answer
740
views
Can binary data be stored in Redis Hashes without base64? (via phpredis)
The official website said that Strings are binary safe, but it did not mention other types. So...
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 ...
0
votes
1
answer
7k
views
How to resolve (error) ERR unknown command 'service' error in Redis in windows machine?
I installed Redis-cache in my windows machine,after successfully installed i open reddis-cli in that i run service redis_6379 status it's showing following error
(error) ERR unknown command 'service' ...
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 ...
1
vote
1
answer
312
views
Any recommended PHP package for redisSearch?
I thought, surely there must be php developers out there who use redisSearch. I have only seen two packages for this RedisSearch-php by Ethan Hann and php-redisearch by MCFJA. They return empty ...
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 ...
0
votes
1
answer
1k
views
Phpinfo() from xampp doesn't show php-redis extension (UBUNTU 20.04)
I installed Redis-server and PHP-Redis, as well as PHP-igbinary on my hardware but it seems that my xampp php_info() does not show me the extensions as if it did not take into account my installations....
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
8k
views
Install redis extension for php 7.4 on Debian server
I'd like to install php7.4-redis on my debian server. My php is 7.4 version.
When I run the "sudo apt install php7.4-redis" command , it shows 404 not found so I can't finish my setting.
...
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 ...
0
votes
2
answers
963
views
WPengine not allowing to connect redis with scalegrid cluster
I have setup with scalegrid redis cluster with wordpress. but my wp-engine WordPress site unable to connect with scale grid cluster for the Wp object cache plugin
I am getting this issue
Status: Not ...
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 ...
0
votes
1
answer
2k
views
Call to undefined method Redis::delete() on CakePHP 2.10.24
I'm running an application on AWS Elastic Beanstalk PHP 7.3 running on 64bit Amazon Linux/2.9.12 and I've recently starting getting the following error -
Call to undefined method Redis::delete()
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
1
answer
2k
views
How to configure Laravel to use PhpRedis?
PHP 7.3
Laravel 5.8
Until now I was using Predis for my cache in the Laravel project. Now I want to switch to PhpRedis. I've read it's really simple (just config changes), but I have a lot of ...
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', '...
1
vote
0
answers
309
views
how to set up phpredis for php 7.2
I would like to ask is there anyone knows how to set up the phpradis in Laravel with the PHP version of 7.2?
I already set up radis in my project but did not manage to set up phpradis. I am using ...
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
...
1
vote
1
answer
2k
views
PHPRedis Scan doesn't return the next cursor
In my Laravel application, I used to use the predis/predis package to be able to use Redis for caching. Recently as recommended in the docs I have switched to PhpRedis but part of my code that was ...
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 ...
3
votes
0
answers
732
views
Changed predis to phpredis: Getting segmentation fault
(Code is locally tested on a mac)
I've created a simple test for Redis, but it, unfortunately, fails with [1] 27996 segmentation fault:
// Config in App.php
// Had to rename Redis, because of the ...