Skip to content

Cannot use 'FLUSHDB' with redis-cluster #7

Closed
@s1lver

Description

@s1lver

What steps will reproduce the problem?

  1. Set up Redis cluster
  2. Call method $this->instance->clear()
public function clear(): bool
{
    return $this->client->flushdb() !== null;
}

What is the expected result?

Completed cleaning

What do you get instead?

I get an exception

Additional info

Q A
Version 1.0.0
PHP version 8.0.21
Operating system Alpine
Redis 6.2.6 - 7.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions