Package com.helix.core.cache.l4
Class RedisCacheInvalidator
java.lang.Object
com.helix.core.cache.l4.RedisCacheInvalidator
Publisher for broadcasting cache invalidation events across cluster nodes via Redis Pub/Sub.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRedisCacheInvalidator(redis.clients.jedis.JedisPool jedisPool) RedisCacheInvalidator(redis.clients.jedis.JedisPool jedisPool, String channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidBroadcasts an invalidation event using a CacheKey.voidbroadcastInvalidation(String ruleName) Broadcasts an invalidation event for the specified rule name.
-
Field Details
-
DEFAULT_INVALIDATION_CHANNEL
- See Also:
-
-
Constructor Details
-
RedisCacheInvalidator
public RedisCacheInvalidator(redis.clients.jedis.JedisPool jedisPool) -
RedisCacheInvalidator
-
-
Method Details
-
broadcastInvalidation
Broadcasts an invalidation event for the specified rule name.- Parameters:
ruleName- name of the rule to invalidate across the cluster
-
broadcastInvalidation
Broadcasts an invalidation event using a CacheKey.- Parameters:
key- cache key of the rule
-
getChannel
-