fix:更新已知bug,优化代码

This commit is contained in:
Ying
2022-11-28 19:11:12 +08:00
parent f6aee95cfc
commit 9445b206a2
1378 changed files with 53759 additions and 20789 deletions

View File

@@ -208,7 +208,7 @@ EOLUA;
// and removes the linked items. When the set is still not empty after
// the scan, it means we're in cluster mode and that the linked items
// are on other nodes: we move the links to a temporary set and we
// gargage collect that set from the client side.
// garbage collect that set from the client side.
$lua = <<<'EOLUA'
redis.replicate_commands()

View File

@@ -51,7 +51,7 @@ class TagAwareMarshaller implements MarshallerInterface
$serialized[$id][9] = "\x5F";
}
} else {
// other arbitratry values are serialized using the decorated marshaller below
// other arbitrary values are serialized using the decorated marshaller below
$notSerialized[$id] = $value;
}
}

View File

@@ -1,13 +1,13 @@
Symfony PSR-6 implementation for caching
========================================
The Cache component provides an extended
[PSR-6](http://www.php-fig.org/psr/psr-6/) implementation for adding cache to
The Cache component provides extended
[PSR-6](https://www.php-fig.org/psr/psr-6/) implementations for adding cache to
your applications. It is designed to have a low overhead so that caching is
fastest. It ships with a few caching adapters for the most widespread and
suited to caching backends. It also provides a `doctrine/cache` proxy adapter
to cover more advanced caching needs and a proxy adapter for greater
interoperability between PSR-6 implementations.
fastest. It ships with adapters for the most widespread caching backends.
It also provides a [PSR-16](https://www.php-fig.org/psr/psr-16/) adapter,
and implementations for [symfony/cache-contracts](https://github.com/symfony/cache-contracts)'
`CacheInterface` and `TagAwareCacheInterface`.
Resources
---------

View File

@@ -394,7 +394,7 @@ trait AbstractAdapterTrait
$this->ids[$key] = $key;
if (\count($this->ids) > 1000) {
array_splice($this->ids, 0, 500); // stop memory leak if there are many keys
$this->ids = \array_slice($this->ids, 500, null, true); // stop memory leak if there are many keys
}
if (null === $this->maxIdLength) {

View File

@@ -1,7 +1,7 @@
{
"name": "symfony/cache",
"type": "library",
"description": "Provides an extended PSR-6, PSR-16 (and tags) implementation",
"description": "Provides extended PSR-6, PSR-16 (and tags) implementations",
"keywords": ["caching", "psr6"],
"homepage": "https://symfony.com",
"license": "MIT",