Questions tagged [predis]

Predis is a flexible and feature-complete PHP client library for the Redis key-value store.

Predis requires PHP >= 5.3 and it is entirely written in PHP.

It can be used without the need to build and install a native extension for the interpreter, making it also easier and faster to add new features which is great given how fast the development of Redis proceeds.

Speed up Predis

  • support HHVM >= 2.4.0
  • can be paired with a C extension phpiredis

Frameworks integration

Useful links

254 questions
0
votes
1 answer

store mysql query in redis using predis

I want to use redis cache to store mysql queries in redis, the first time it works as expected (because there is no key in redis) and execute the query, but later $rs = @unserialize( $redis->get($key) returns nothing; I tried many solutions but no…
Ya Basha
  • 1,902
  • 6
  • 30
  • 54
0
votes
1 answer

Redis error while reading line from the server

Below are my current values dealing with tcp and open files on my linux system: $cat /proc/sys/fs/file-max # outputs 1,624,164. $cat /proc/sys/net/ipv4/tcp_max_syn_backlog #outputs 1,048,576 $cat /proc/sys/net/core/somaxconn # output…
The Georgia
  • 1,005
  • 7
  • 23
  • 59
0
votes
0 answers

Redis log producing same message

I have a redis cluster with 3 masters and 3 slaves. All the instances are running fine except for one master and its slave. For some reason, this master/slave instance keep closing server connections. When i checked the error logs on both the master…
The Georgia
  • 1,005
  • 7
  • 23
  • 59
0
votes
0 answers

Redis-cli monitor command returns connection closed by server error

I have 6 nodes in a redis cluster - 3 master and 3 slaves. All the nodes are running just fine except for one master and it's slave. On this troublesome master, when i run the command (on either master or slave), i get the following error: Error:…
The Georgia
  • 1,005
  • 7
  • 23
  • 59
0
votes
1 answer

Is there any tool to monitor the incoming requests to Redshift database?

I've implemented predis server. I can't determine whether my application is pinging the database every time or if it is taking data from predis. Is there any way I can check incoming requests to the Redshift instance? Or test the predis?
hari
  • 31
  • 3
  • 10
0
votes
1 answer

Predis + Elasticache automated failover config

I am running Predis against an Elasticache cluster on AWS which has a write master and two read replicas. Predis is configured for master/slave replication roughly as follows.. self::$client = new Predis\Client( [ 'tcp://' . REDIS_MASTER .…
rshepherd
  • 1,396
  • 3
  • 12
  • 21
0
votes
1 answer

Connecting to Redis Cluster via Sentinel

I have a redis cluster of three master nodes and three slaves. I also have three Sentinel servers (each on a separate machine) monitoring the redis cluster. Using Predis, I am able to connect to the cluster via a single Master Node's IP/Port. But I…
The Georgia
  • 1,005
  • 7
  • 23
  • 59
0
votes
1 answer

Predis: Pros and Cons of the two cluster strategies

I am using Predis to connect to a Redis 3.0.2 cluster. So, I have an option to use either predis or redis cluster strategy. I am wondering if there are any significant pros and cons of choosing one of them over the other? Based on my wandering…
Muhammad Anas
  • 398
  • 1
  • 4
  • 14
0
votes
1 answer

Predis Autoloader doesn't load

I use composer to add external libraries to my project - including Predis. For some reason Predis is not being generated probably and I always receive: Class 'Predis\Autoloader' not found So I dived into the composer loading files and find some…
Asaf Nevo
  • 11,338
  • 23
  • 79
  • 154
0
votes
2 answers

How to connect to the same redis db with Predis and redis-cli?

While playing around with redis, I notice that, connecting with Predis and redis-cli lead to different keyspaces both with the name db0. Both connections were made to a redis-server running on tcp://localhost:6379. I can see that the dumps are in…
0
votes
2 answers

Redis sentinel implementation

We have a setup with : 2 php server 2 redis servers running as master/slave 1 Log server, which stores all kind of logs in elastcisearch We want to implement automatic failover for redis servers, right now in php servers redis master address ir…
Kristapsv
  • 558
  • 5
  • 15
0
votes
1 answer

Retrieving redis hash data

my dev environment is the Laravel PHP framework utilising the predis client library. I am probably overlooking certain aspects, and I am new to Redis however what I think am wanting is the hash data type for storing user information like…
user969729
  • 299
  • 3
  • 7
  • 14
0
votes
1 answer

CRUD & Relationships in Redis: How to

So Redis (Predis Library for PHP) is incredibly useful, as this SO answer clearly shows the many use cases: What is Redis and what do I use it for? And this answer looks at handling many to many relationships with Redis: how to have relations many…
Donal.Lynch.Msc
  • 3,365
  • 12
  • 48
  • 78
0
votes
0 answers

How to connect Predis with node.js via SSL

I want to connect my Predis Client (PHP Redis) with node.js via SSL. It already work just on TCP. So I extended my Predis configuration: $redis = new Predis\Client(array( 'timeout' => 5.0, 'throw_errors' => true, 'scheme' => 'ssl', …
MateuszBlaszczyk
  • 133
  • 1
  • 3
  • 10
0
votes
1 answer

Trying to install Predis using PEAR on windows

Firstly I'm new to PEAR and Predis...I want to install Predis on windows 7, and theres what I have done so far... I have installed Redis on my computer in C:/Redis. PEAR is in \wamp\bin\php\php5.3.10 and it was installed successfully. Now m trying…
techno
  • 192
  • 13
1 2 3
16
17