Skip to content

Commit e264119

Browse files
committed
Update doc
[skip ci]
1 parent c7d4750 commit e264119

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy