yiisoft / cache-redis Goto Github PK
View Code? Open in Web Editor NEWRedis adapter for cache
Home Page: https://www.yiiframework.com/
License: BSD 3-Clause "New" or "Revised" License
Redis adapter for cache
Home Page: https://www.yiiframework.com/
License: BSD 3-Clause "New" or "Revised" License
$this->instance->clear()
public function clear(): bool
{
return $this->client->flushdb() !== null;
}
Completed cleaning
I get an exception
Q | A |
---|---|
Version | 1.0.0 |
PHP version | 8.0.21 |
Operating system | Alpine |
Redis | 6.2.6 - 7.0.4 |
Migrate from Yii2
Don't see the different in behavior
I get an exception
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 '{}()/\@:'
psr/simple-cache
to ^2.0|^3.0
.^8.0
and make improvements related to this.Here always returns one instance of ConnectionInterface
:
cache-redis/src/RedisCache.php
Line 43 in 85767c4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.