You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Notification that a key's value is added to ram (from swap or otherwise).
604
+
* swap_key_flags has 4 bits that the module can write / read.
605
+
* when swap_key_metadata is NOT_ON_SWAP, it means the key is not loaded from swap. */
606
+
typedef void (*RedisModuleTypeKeyAddedToDbDictFunc)(RedisModuleCtx *ctx, RedisModuleString *key, void *value, int swap_key_metadata);
607
+
/* Notification that a key's value is removed from ram (may still exist on swap).
608
+
* when swap_key_metadata is NOT_ON_SWAP it means the key does not exist on swap.
609
+
* return swap_key_metadata or NOT_ON_SWAP if key is to be deleted (and not to be written). */
610
+
typedef int (*RedisModuleTypeRemovingKeyFromDbDictFunc)(RedisModuleCtx *ctx, RedisModuleString *key, void *value, int swap_key_metadata, int writing_to_swap);
611
+
/* return swap_key_metadata, 0 indicates nothing to write. when out_min_expire is -1 it indicates nothing to write. */
612
+
typedef int (*RedisModuleTypeGetKeyMetadataForRdbFunc)(RedisModuleCtx *ctx, RedisModuleString *key, void *value, long long *out_min_expire, long long *out_max_expire);
0 commit comments