predis Questions

2

Solved

I was able to flash all keys from terminal using redis-cli flushdb. I have been searching for a while, took me an hour in order to find the simple command to do it in php. I didn't find it on st...
Odalisque asked 6/11, 2017 at 10:20

1

I use redis replication(one master with port 6379, two slave with port 6380, 6381), I've not found anything in the laravel doc for config redis replication. I use below config(from gpt's answer), b...
Franfranc asked 28/5 at 7:32

3

Solved

I am getting error NOAUTH Authentication required. My laravel version is 5.3 and I am using predis 1.1.1 to connect redis. in etc/redis/redis.conf I have: bind 127.0.0.1 requirepass somepassword ...
Saxophone asked 27/2, 2017 at 10:9

5

Solved

I am using Laravel 5.4, with Predis and the latest Redis (or Redis for Windows). The keys are being saved without issue. So, I doubt it's a configuration issue. The problem is that they are not e...
Oxidase asked 21/4, 2017 at 18:29

2

Which one should I choose and why between predis and phpredis ?I am using NGINX and Codeigniter.Thanks in advance
Inclinable asked 30/7, 2018 at 7:55

4

Solved

I am trying to connect to Redis with predis 1.1 and SSL, using information https://github.com/nrk/predis, where in the example the following configuration is used: // Named array of connection para...
Compositor asked 20/1, 2017 at 11:35

10

Laravel Version: 7.5.0 PHP Version: 7.2 Database Driver & Version: Redis Everything was working fine but suddenly this error appear i changed the phpredis to predis but error is same. Steps T...
Paige asked 12/4, 2020 at 7:31

2

Solved

i am having a problem setting up redis cache with laravel. i have a redis server runnig on my local machine: my .env: i have the localhost on port 6379 ready and listened: someone plz tell...
Anjanette asked 21/1, 2018 at 0:27

4

Solved

I have created an application to send e-mails to more than one user but I am facing a problem when dealing with a large number of recipients. The error appears in a failed_jobs table Illuminate\Que...
Levulose asked 15/7, 2020 at 18:43

2

I am developing a Laravel project and I'm using Predis for caching database queries. Now I have to install Redis on my server. Is it possible to install Redis on shared hosting?
Crux asked 11/11, 2017 at 13:59

3

Solved

Is there any other faster way than EXISTS, to check if a key exists in redis or not? My problem is, I have over 1 million records in redis and I need to do a key_exists check. This should happen ...
Leuco asked 19/12, 2016 at 12:55

0

I have an issue with my Laravel app - many errors in log like that: READONLY You can't write against a read-only replica. {"exception":"[object] (RedisException(code: 0): READONLY You can't wr...
Parrisch asked 13/10, 2019 at 10:49

1

Solved

Background In the past I was able to use a non-clustered redis just fine in my config like so: 'redis' => [ 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => ...
Darindaring asked 30/8, 2019 at 7:50

2

Solved

I was using phpredis and now I am also trying predis for my php applications, but I couldn't find a good documentation for the second one. There is a "How to use" in github, but I find it quite sho...
Examine asked 10/4, 2012 at 14:40

1

Solved

I'm trying to use Laravel (5.4) with a clustered version of Redis. I followed the instructions form this post like so: /* |-------------------------------------------------------------------------...
Labors asked 7/6, 2019 at 16:1

1

Solved

I am trying to test my cache was implemented with redis clustering (cluster by server not client). I have to flush redis every time I run a unit test. when I try to run flushdb command I got this e...
Anschluss asked 29/6, 2015 at 11:23

1

I have a problem with proper configuration for redis in Symfony 4. I want to have no prefix before my cache item keys, but it is constantly showing. Here is my config/packages/framework.yaml (part ...
Sicilia asked 24/5, 2018 at 17:22

2

Solved

I have previously used the KEYS command to search for keys matching a certain pattern in my Redis database. Since Redis 2.8, the SCAN command seems to be preferred over KEYS since it returns an ite...
Blaseio asked 16/2, 2015 at 16:6

3

I've just started using Predis for Redis migration and I'm having trouble getting the zadd function to work with an array. This code works: foreach ($userIndexArr as $row) { $usernames[] = 0; $...
Dithionite asked 21/10, 2014 at 0:23

3

Solved

I'm trying to mock out the Predis client in a PHPUnit test. When I call the method I've tried to mock out, at the end of the test PHPUnit is telling me that the expectation was not met. Here's a c...
Clod asked 18/10, 2011 at 12:41

1

Solved

Using predis is it possible to check if a key exists? My users data is stored as follows: public function createUser($email, $password, $username) { return $this->predis->hMset("user:{$use...
Elusive asked 4/2, 2016 at 11:38

1

Today after update composer packages I get error message. ClassNotFoundException in SncRedisExtension.php line 158: Attempted to load class "Factory" from namespace "Predis\Profile". Did you forg...
Omphale asked 30/6, 2015 at 13:32
1

© 2022 - 2024 — McMap. All rights reserved.