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

Serialization of 'PDO' is not allowed - Laravel caching with Datatable

if (!Cache::store('file')->has('channel')) { $products = Channel::select('*'); Cache::store('redis')->put('channel', $products, 86400); } $products = Cache::store('redis')->get('channel', []); return DataTables::eloquent($products) …
1
vote
1 answer

How to connect a symfony application to Azure redis cache?

The symfony application is currently connected to a redis cache in a docker container. I have created a new Redis Cache on Azure and I am trying to connect it to my symfony application which is running in another docker container. According to…
pnkjkmr469
  • 195
  • 1
  • 8
1
vote
1 answer

Connecting to remote REDIS server in laravel

I have made an instagram contender that needs to be able to process video conversions(FFMPEG) on a different server because of CPU reasons. Both of my servers are connected by the same database. Currently i have a local redis server working so this…
1
vote
1 answer

Snc_redis wrongly redirect to 127.0.0.1

I want to connect to a redis cluster through an HA. My config is like this: snc_redis: clients: cluster_test_ha: type: predis alias: cluster_test_ha dsn: "%redis_cluster_ha_address%" …
Saeed
  • 7,262
  • 14
  • 43
  • 63
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
1 answer

Connection refused redis

when i try to initialize a new client $tkRedis = new Client(); i get an error message Connection refused [tcp://127.0.0.1:6379] The container of Redis is running. But I can't establish a connection with predis. Part of my…
xepmahh
  • 21
  • 3
1
vote
0 answers

No connections available in the pool, Laravel predis

I have the error "No connections available in the pool" under laravel 7, php7.4 and redis server on AWZ elasticache. Here my .env…
user1998000
  • 175
  • 1
  • 10
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
0 answers

Cannot use 'HSET' with redis-cluster

Query: I am using a Redis cluster. Trying to use hset store user data. I am not able to figure out why this error is coming. Env: Library: Predis-1.0.3 redis: 3.0.6 php: 5.4 Framework : codeigniter(2.1.0) ERROR: Predis\NotSupportedException:…
int_ashish
  • 121
  • 1
  • 5
1
vote
0 answers

Laravel broadcast event to node server through redis

I have a laravel application where I use events to notify the clients of updates. Previously I used pusher to broadcast those events but I want to change this to redis (or anything without the need of a 3rd party like pusher). I tried to use predis…
Nebewe95
  • 11
  • 1
1
vote
0 answers

PHP - Predis Connection Timeout

I have absolutely no idea what's going on. I'm trying to connect to a Redis server and I can connect fine using redis-cli but using Predis I get the first error. If I use redis-cli everything is fine. I am 100% sure the passwords and IPs are…
Ruthacury
  • 21
  • 1
  • 2
1
vote
0 answers

Docker Redis unable to connect with laravel and predis

I'm using docker with laravel project but im struggling to it to connect to the laravel container ############################################################################### # Generated on phpdocker.io …
Dev Daniel
  • 435
  • 1
  • 7
  • 25
1
vote
1 answer

Cannot use 'EVAL' with redis-cluster

Redis was working okay on local machine but on production it is throwing error. On the local machine, I used the same configuration. Trying for hours but still could not solve the problem. Production Environment : Ubuntu Stack : Laravel, Redis,…
1
vote
1 answer

Infinite loop when using predis SCAN

I'm trying to replace the keys function from predis for scan in order to increase the performance in some parsing that we do. The problem is that when I do the scan operation it seems to fall into an infinite loop, which makes no sense because…
shake93
  • 55
  • 5
1
vote
2 answers

Predis: Error while reading line from the server. [tcp://127.0.0.1:6379]

I've been trying to deploy a Laravel application using Forge for a while now, but I always get stuck on Predis giving me the following error: Predis\Connection\ConnectionException Error while reading line from the server.…
Twd
  • 11
  • 5