Class RedisCacheInvalidator

java.lang.Object
com.helix.core.cache.l4.RedisCacheInvalidator

public class RedisCacheInvalidator extends Object
Publisher for broadcasting cache invalidation events across cluster nodes via Redis Pub/Sub.
  • Field Details

  • Constructor Details

    • RedisCacheInvalidator

      public RedisCacheInvalidator(redis.clients.jedis.JedisPool jedisPool)
    • RedisCacheInvalidator

      public RedisCacheInvalidator(redis.clients.jedis.JedisPool jedisPool, String channel)
  • Method Details

    • broadcastInvalidation

      public void broadcastInvalidation(String ruleName)
      Broadcasts an invalidation event for the specified rule name.
      Parameters:
      ruleName - name of the rule to invalidate across the cluster
    • broadcastInvalidation

      public void broadcastInvalidation(CacheKey key)
      Broadcasts an invalidation event using a CacheKey.
      Parameters:
      key - cache key of the rule
    • getChannel

      public String getChannel()