package redis-async

  1. Overview
  2. Docs

Key events that you may ask Redis to inform you of https://redis.io/docs/manual/keyspace-notifications/

This variant is incomplete and is intended to be added to as needed.

type t = [
  1. | `del
    (*

    DEL generates a del event for every deleted key.

    *)
  2. | `expire
    (*

    EXPIRE and all its variants (PEXPIRE, EXPIREAT, PEXPIREAT) generate an expire event when called with a positive timeout (or a future timestamp). Note that when these commands are called with a negative timeout value or timestamp in the past, the key is deleted and only a del event is generated instead.

    *)
  3. | `new_
    (*

    Every time a new key is added to the data set, a new event is generated.

    *)
  4. | `expired
    (*

    Every time a key with a time to live associated is removed from the data set because it expired, an expired event is generated.

    *)
  5. | `set
    (*

    Every time set, setex, setnx, or getset is called, a set event is generated.

    *)
  6. | `hset
    (*

    Every time hset, hsetnx, or hmset is called, an hset event is generated.

    *)
]
val sexp_of_t : t -> Sexplib0.Sexp.t
include Core.Stringable.S with type t := t
val of_string : string -> t
val to_string : t -> string
OCaml

Innovation. Community. Security.