Skip to content

Cache::flush does not work with redis clusters #20406

@Dadibom

Description

@Dadibom
  • Laravel Version: 5.4.31
  • PHP Version: 7.1
  • Database Driver & Version: phpredis (3.1.1-1), cluster using redis 3.2.9

Description:

(1/1) ErrorException RedisCluster::flushdb() expects exactly 1 parameter, 0 given

Illuminate\Cache\RedisStore::flush does not accept any parameters and will not pass anything in the call to $this->connection()->flushdb

Steps To Reproduce:

Set cache driver to redis, set it to use a cluster, call \Cache::flush(0 /* or whatever, won't be passed anyway */);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions