Reputation: 171
I am new in Redis. Is anyone know, why these error showing? I am using Laravel.
Cannot use FLUSHDB with a cluster of connections
$redis = Redis::connection();
$redis->set('name', 'Harry');
echo $name = $redis->get('name'); //It is working fine
$redis->save();
Upvotes: 0
Views: 3070
Reputation: 403
www/projectname/app/config/database.php
Find,
'redis' => array(
'cluster' => false,
'default' => array(
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
)
);
If ‘cluster’ is true, make it false. May be your issue will solve.
Upvotes: 5