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
2 answers

Dump and Restore Redis on PHP (predis)

How can I dump and restore the redis database on PHP, I'm using predis on my client. Can I dump the redis database on .rdb format ? Updated : I dump/backup database using the following command, $redis->bgSave(); How to restore it back to my…
Şivā SankĂr
  • 1,966
  • 1
  • 18
  • 34
1
vote
1 answer

Laravel Redis driver not supported error

I switched branches yesterday to see that my environments file disappeared. Once I restored the file, I started getting the following error when going to my app in my browser: message: "Driver [“rediscache”] not supported.", type:…
brianfr82
  • 271
  • 1
  • 5
  • 19
1
vote
0 answers

PHP extension: when values in persistent_list are destroyed?

Our distributed database have php client which is developed on php extension. We store our database object in persistant_list. Problem: From the log we find, for the same process, sometimes it can't find the database object from persistent_list,…
Tongxuan Liu
  • 270
  • 1
  • 12
1
vote
0 answers

Subscribing and reading data from redis channels using php-redis simultaneously

I have to subscribe to all the channels of my Redis db and simultaneously read data from another hash in the same db node. The following is the code I have written for this using phpredis: $notif = new Worker; try { // connect redis …
Shekhar Chikara
  • 3,786
  • 2
  • 29
  • 52
1
vote
1 answer

Php redis extended interger overflow

why? I guess is overflow,but i can't fix it. connect('127.0.0.1'); $res = $redis->eval('return 32140378*16777216'); var_dump($res); exit; //result:1509949440 //right:539226064027648
xiaojiong
  • 21
  • 3
1
vote
1 answer

redis.so module is not loaded

I have an EC2 instance on Amazon Web Services and, in the same VPC there's also an instance of ElastiCache (Redis). My EC2 instance have installed Amazon Linux AMI 2015.09. I have also configured it to work with mpm_worker_module and not prefork.…
70ny
  • 748
  • 1
  • 7
  • 22
1
vote
1 answer

If I run a long transaction or Lua script on a master redis instance, does it block on the read-only slaves

I want to be able to access a very recent copy of my master Redis server keys. It doesn't have to be completely up to date as I will be polling the read only copy but I don't want the transactions and Lua scripts I run on the master instance to…
Hard worker
  • 3,916
  • 5
  • 44
  • 73
1
vote
2 answers

Nginx Reverse Proxy settings

I am in the process of setting up a server configuration which consists of A front end server running Nginx. Call it example.com Another server, also running Nginx, (on the same network and accessible via an internal IP, say 10.118.10.9) which…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
1
vote
1 answer

Add multiple items to zset with phpredis zadd

I am trying to figure out how add multiple items to zset via the phpredis zadd method. Something like the following ZADD myzset 2 "two" 3 "three"
mmohiudd
  • 310
  • 2
  • 10
1
vote
0 answers

phpredis will not install on CentoOS Because of PHP-Devel conflict

I have been trying to get phpredis installed on a live box however I am encountering an issue when trying to install PHP-Devel. When running the following command: yum --enablerepo=remi install php-devel I get the following result: Loaded plugins:…
1
vote
1 answer

phpinfo does not show redis but php -m does, mac os

I just installed phpredis on my mac and when I do $ php -m I see PHP Modules] bcmath .... redis Reflection ..... zlib [Zend Modules] Zend OPcache But in my phpinfo I do not see that information. I have cd…
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
1
vote
1 answer

How to installation PHPRedmin?

I m trying to install phpRedMin and having some issues with that. All the documentation I found were available for older version of Apache. I am using Apache version 2.4.7 in Ubuntu and I am not able to locate Apache configuration example…
Aditi Shah
  • 11
  • 2
1
vote
0 answers

Create notifications structure with Redis

I'm trying to create "Notifications" using Redis, currently with PHPRedis. I would like to store multiple notifications for each user (by USER_ID) with multiple "key => value" in it. Notification may look like that (as PHP array): $notification =…
1
vote
0 answers

Why output is empty after function zRangeByScore?

I use a php extension for Redis. There is a simple code: $result = $this->redis->zUnion('mergedArr', array('FEED:User:459', 'FEED:User:458')); var_dump($result); // It is returns 15 integer $start = time(); $end = strtotime("+5 day"); $result =…
AllenDegrud
  • 189
  • 2
  • 13
1
vote
1 answer

PHPRedis - time() does not work

I have a problem. In my project I have few servers which modify same data in redis. All the servers may have different time. In other words, I can't rely on app server time in some cases. So I would like to use Redis time as general base…
Bogdan Burym
  • 5,482
  • 2
  • 27
  • 46