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
1
vote
1 answer

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 if the AWS ElasticCache for Redis cluster has no tls/ssl…
Vivek Bani
  • 3,703
  • 1
  • 9
  • 18
1
vote
1 answer

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 documents and php-redisearch by MCFJA is not…
Moziz Carayol
  • 31
  • 1
  • 2
1
vote
0 answers

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 created using cloned github phpredis used phpize…
Rabin
  • 51
  • 1
  • 6
1
vote
0 answers

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 Windows and the instructions or resources for setting…
Kenny
  • 61
  • 1
  • 2
  • 4
1
vote
1 answer

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 using SCAN is broken. In predis when I was using…
Hirad Roshandel
  • 2,175
  • 5
  • 40
  • 63
1
vote
2 answers

Please make sure the PHP Redis extension is installed and enabled

I'am using Laravel queue.and I set up my .env file as follows. QUEUE_DRIVER = database QUEUE_CONNECTION = database But I get this error. Please make sure the PHP Redis extension is installed and enabled. Can anyone explain that and fix this…
Fadi Sharif
  • 300
  • 1
  • 3
  • 11
1
vote
1 answer

Configuring PhpRedis in Laravel 7

I've set up a fresh installation of Laravel in Homestead and I've installed PhpRedis as recommended in the Laravel docs https://laravel.com/docs/7.x/redis#phpredis. I followed this guide for installing PhpRedis…
Josh
  • 714
  • 2
  • 8
  • 20
1
vote
3 answers

what is the diff b/w pset and psetx in php redis?Is it possible set a array as value with it?

$redisClient -> setex('key', 3600, 'value' ); and $redisClient -> psetex('key', 3600, 'value' );
1
vote
1 answer

How to fix 'php_redis.dll load failed , %1 is not a valid Win32 application' error on windows

I added php_redis.dll file in /php/ext folder and added extension=redis in php.ini file. I am using 64bit xampp server on windows 10. This is what I see in the error log: Warning: PHP Startup: Unable to load dynamic library 'php_redis.dll' …
1
vote
2 answers

Redis : is it possible to share datetimes directly between php/laravel and python?

I'm using Redis (phpredis) to share data between my Laravel and my Python app. Within Laravel, I save on a specific channel my array: $data = MyModel::where('start_date','>', "2018-05-02 10:00:00")->get(); // $data = [{'id':1, 'start_date':…
Sebastien D
  • 4,369
  • 4
  • 18
  • 46
1
vote
1 answer

phpredis: BITOP + php implode - not working

I have an array $array = array("dresses","suits"); When I try to make BITOP using phpredis $value = implode(",",$array); $redis->bitOp('AND','color',$value); echo $redis->bitcount('color'); I get 0. Also tried $value =…
George
  • 87
  • 3
  • 10
1
vote
1 answer

How to find redis keys using regex in PHP redis?

In Redis, I have keys in the following format : 25-1521624987 25-1521624000 25-1521624900 30-1521624900 30-1521624000 35-1521624100 I have written the following code to extract the Redis records with keys that begin with number 25. $tokens =…
Rishav Medhi
  • 13
  • 2
  • 4
1
vote
1 answer

phpredis Redis cluster connection objects reuse across requests

We use phpredis Library to connect to our 64 node Redis cluster from our serving machines. Though we make use of persistent connections, as php doesn't reuse objects across requests, every request makes a CLUSTER SLOTS call to the Redis Cluster…
sreeraag
  • 513
  • 1
  • 5
  • 19
1
vote
1 answer

Set offset and limit in zScan Redis

I have this code on PHP redis: (https://github.com/phpredis/phpredis) $count = 10; $it = null; $redis->setOption(\Redis::OPT_SCAN, \Redis::SCAN_RETRY); $pattern = '*"regionId":"564"*'; $result = $redis->zScan('my_key', $it, $pattern, $count); I…
1
vote
1 answer

Redis arabic language decoding

I use Redis with PHP, with phpRedis connector. When i save a word in arabic language I can't retrieve this word, it's return encoding values. In redis the problem is solved if I connect with: >redis-cli --raw Example…
amic
  • 85
  • 7