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

Redis stored in array

I have multiple redis instances and I want to access them through php. I am using phpredis 7. Since I have multiple functions to connect to different servers, I stored them in an array. function ud_1() { $redis = new Redis(); if…
Mirakurun
  • 4,859
  • 5
  • 16
  • 32
0
votes
1 answer

phpredis debug method not working

i recently updated php redis version to 3.0.0-rc1 after that $data = $redis->debug('Key'); var_dump($data); gives output bool(false) is debug method disabled or need to do anything to make that method work
murali418
  • 76
  • 9
0
votes
1 answer

Unable to Subscribe to Redis Channel Laravel 5.2

I am following Laravel office Redis guide but i am having some problem https://laravel.com/docs/5.2/redis#pubsub After creating the command when i run " -> php artisan redis:subscribe" in console i get following error …
Syed Danial
  • 635
  • 1
  • 6
  • 16
0
votes
0 answers

Where is redis.conf in phpredis

I am new to phpredis and am confused where the redis.conf file is for nicolasff's repository. It is not in the configure file. When I installed redis through the tar.gz there was a file called redis.conf which was helpful. Do I need to remake redis…
0
votes
2 answers

Can't install PHPREDIS on PHP7 with Ubuntu 14.04

I'm using PHP7 on ubuntu 14.04. Here is my PHP version information from terminal(using command PHP -v). PHP 7.0.11-1+deb.sury.org~trusty+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend…
Suresh
  • 5,687
  • 12
  • 51
  • 80
0
votes
1 answer

phpredis: got error when running script Call to undefined function new Redis()

env: CentOS 6.5 php5.5.3 / php-fpm5.5.3 nginx 1.0.15 php-redis 2.2.8 also added extension_dir and extension settings in php.ini then restart the service of php-fpm & nginx and i have confirmed the redis has been enabled/loaded in…
Sylar Li
  • 1
  • 2
0
votes
1 answer

phpredis function mSet with ttl

I'm currently using memcached, but i'm trying move this mechanism to redis. My goal is to save the entire array (key => value) every 1000 iterations. Old solution: 'value1', 'key2' => 'value2', 'key3' =>…
Jarek Kowol
  • 597
  • 1
  • 9
  • 16
0
votes
1 answer

How to load php_redis.dll when running post deployment script in Kudu Console

I have a webapp running on Azure App Service. I am trying to test a Post deployment script in Kudu Debug CMD console. php -d extension=php_redis.dll -f postdeploy.php Here is my postdeploy.php file
smk
  • 301
  • 6
  • 13
0
votes
1 answer

RedisClusterException with phpredis when connecting to redis cluster which is not local

I'm using phpredis (builded on 25.02.2016 from https://github.com/phpredis/phpredis) with php 5.5.9. The extension is tested succesfully with a single redis instance (version 3.0.7) (remote and local redis instance). This is the code to connect to a…
user1096512
0
votes
2 answers

Can redis improve my MySQL performance and how to store data in redis similar to a DB table?

I have the following web site: The user inputs some data and based on it the server generates a lot of results, that need to be displayed back to the user. I am calculating the data with php, storing it in a MySQL DB and display it in Datatables…
0
votes
1 answer

Does phpredis support redis 3?

I have been searching for this information. I have used phpredis with redis server 2.x, now due to server migration we have redis server 3.x. Does phpredis support redis 3?
Ruchit Rami
  • 2,273
  • 4
  • 28
  • 53
0
votes
1 answer

Getting concurrent requests processing issue with Redis+PHP

I am using PHP 5.3 I am using Redis, to store PHP array data for every requests in Redis variable. I am setting value for 1 redis variable and on every request I am incrementing value by 1. Using that value as key for the each array element.…
Ajay Y
  • 17
  • 5
0
votes
1 answer

How I can store the array in Redis and retrive the array items using redis in PHP

I have following PHP array and I want to store it in Redis. Also I want to retrieve all the array items whenever needed to perform the operation. How can I achieve this. Please help. Following is my PHP/redis code: $data['xxx'] = array( …
Ajay Y
  • 17
  • 5
0
votes
1 answer

Failed to load module [redis], error: /usr/local/lsws//modules/redis.so: undefined symbol: zend_objects_destroy_object

I am trying to use open LiteSpeed to host my php application + Redis. I compiled Redis to its respective redis.so but it fails to load the extension. Here is the list of steps that i tried to compile this extension 1) wget…
user3307291
  • 708
  • 1
  • 8
  • 11
0
votes
0 answers

phpredis cannot set value

I connected the slave redis, what a silly mistake -_-!!! The learn is that we should always check server status before jumping into client code . I'm trying to use redis in a php app, as google result, I choose phpredis. I established the…
Luffy
  • 99
  • 1
  • 10