All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.redis.NearCacheNotify Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebean.redis;

import java.util.Set;

/**
 * Notify other cluster members to invalidate parts of their near cache.
 */
public interface NearCacheNotify {

  /**
   * Invalidate the given keys.
   */
  void invalidateKeys(String cacheKey, Set keySet);

  /**
   * Invalidate a single key.
   */
  void invalidateKey(String cacheKey, Object id);

  /**
   * Clear a near cache.
   */
  void invalidateClear(String cacheKey);
}