Questions tagged [phpredis]

A fast REDIS client library for PHP

A fast Redis client library for PHP, originally created by Owlient and as of 2017 maintained by Michael Grunder and Pavlo Yatsukhnenko on github. This library provides an API for communicating with Redis, a persistent key-value database written in ANSI-C for Posix systems.

201 questions
0
votes
0 answers

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 - there doesn't seem to be either documentation or…
Erikas
  • 45
  • 6
0
votes
0 answers

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' => 6379, 'connectTimeout' => 2.5, 'auth'…
Acidon
  • 1,294
  • 4
  • 23
  • 44
0
votes
0 answers

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 igbinary version 3.2.13 redis - Available…
0
votes
1 answer

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 replacement for PHPRedis that adds this? Alternatively, is…
John Rix
  • 6,271
  • 5
  • 40
  • 46
0
votes
0 answers

Cannot use 'JSON.SET' in Predis 1.1.1 lib with redis-cluster

I'm running AWS Redis Elasticache with cluster mode on, but when trying to execute JSON.SET/JSON.GET trough Predis lib, I get "NotSupportedException" as you can see below: Fatal error: Uncaught Predis\NotSupportedException: Cannot use 'JSON.SET'…
Éder Rocha
  • 1,538
  • 11
  • 29
0
votes
0 answers

Error: Undefined index: host | php-redis | PHP 7.4 | Laravel 6.20 | Linux

Since I wasnt able to use Redis::keys, Redis::scan,and any other functions except Redis::get and Redis::set while using Predis(Error: Cannot use 'KEYS' with redis-cluster), I decided to switch to Phpredis. I was able to setup and use it successfully…
0
votes
0 answers

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 is like this: $conf['redis_client_interface'] …
0
votes
1 answer

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 from running every time the page loads, I'm using…
0
votes
1 answer

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 it ? Predis\Connection\ConnectionException…
ALji
  • 3
  • 1
  • 3
0
votes
0 answers

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…
0
votes
1 answer

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...
0
votes
1 answer

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' How to resolve this error and start the redis…
Devops Training
  • 221
  • 3
  • 15
0
votes
2 answers

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 includes the use of sorted sets and standard…
Crayons
  • 1,906
  • 1
  • 14
  • 35
0
votes
2 answers

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 specifying the version e.g. sudo apt-get install…
Edward
  • 1
  • 3
0
votes
1 answer

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. This is a real concern because I cannot launch…