Giter VIP home page Giter VIP logo

cache-redis's People

Contributors

dehbka avatar dependabot[bot] avatar devanych avatar s1lver avatar samdark avatar sankaest avatar vjik avatar xepozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cache-redis's Issues

Cannot use 'FLUSHDB' with redis-cluster

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

Why such check of keys?

What steps will reproduce the problem?

Migrate from Yii2

What is the expected result?

Don't see the different in behavior

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

I have a method that automatically generates a key based on the name of the method and the passed parameters. And it worked well enough. There is an interesting check in the new version, the meaning of which I do not understand

if (!is_string($key) || $key === '' || strpbrk($key, '{}()/\@:')) {
    throw new InvalidArgumentException('Invalid key value.');
}

Can you explain why such validation was introduced for the key?

This is basically '{}()/\@:'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.