Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e264119

Browse filesBrowse files
committed
Update doc
[skip ci]
1 parent c7d4750 commit e264119
Copy full SHA for e264119

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
use Symfony\Component\Cache\Traits\RedisTrait;
1919

2020
/**
21-
* Stores tag id <> cache id relationship as a Redis Set, lookup on invalidation using sPOP.
21+
* Stores tag id <> cache id relationship as a Redis Set, lookup on invalidation using RENAME+SMEMBERS.
2222
*
2323
* Set (tag relation info) is stored without expiry (non-volatile), while cache always gets an expiry (volatile) even
2424
* if not set by caller. Thus if you configure redis with the right eviction policy you can be safe this tag <> cache
2525
* relationship survives eviction (cache cleanup when Redis runs out of memory).
2626
*
2727
* Requirements:
2828
* - Client: PHP Redis or Predis
29-
* Due to lack of RENAME support it is not recommended to use PredisCluster, instead use RedisCluster.
29+
* Note: Due to lack of RENAME support it is not recommended to use Cluster on Predis, instead use phpredis.
3030
* - Server: Redis 2.8+
3131
* Configured with any `volatile-*` eviction policy, OR `noeviction` if it will NEVER fill up memory
3232
*
3333
* Design limitations:
3434
* - Max 4 billion cache keys per cache tag as limited by Redis Set datatype.
35-
* E.g. If you use a "all" items tag for expiry instead of clear(), that limits you to 4 billion cache items as well.
35+
* E.g. If you use a "all" items tag for expiry instead of clear(), that limits you to 4 billion cache items also.
3636
*
3737
* @see https://redis.io/topics/lru-cache#eviction-policies Documentation for Redis eviction policies.
3838
* @see https://redis.io/topics/data-types#sets Documentation for Redis Set datatype.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.