Class RedisKeyspaceEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.redis.core.RedisKeyspaceEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RedisKeyExpiredEvent

public class RedisKeyspaceEvent extends ApplicationEvent
Redis specific ApplicationEvent published when a key expires in Redis.
Since:
1.7
Author:
Christoph Strobl
See Also:
  • Constructor Details

    • RedisKeyspaceEvent

      public RedisKeyspaceEvent(byte[] key)
      Creates new RedisKeyspaceEvent.
      Parameters:
      key - The key that expired. Must not be null.
    • RedisKeyspaceEvent

      public RedisKeyspaceEvent(@Nullable String channel, byte[] key)
      Creates new RedisKeyspaceEvent.
      Parameters:
      channel - The source channel aka subscription topic. Can be null.
      key - The key that expired. Must not be null.
      Since:
      1.8
  • Method Details