I'm trying to create a module that auto-expires items from a list after a given number of seconds.

When I push an item into the list, if I create a timer with RedisModule_CreateTimer, I assume the thread the module runs on will yield back to Redis or the OS... and be awoken again when the timer triggers, correct?

Put another way, I'm not going to block the entire Redis node until the timer fires, right?

Comment From: yossigo

It's pretty old but I'll answer for reference if a search hits this in the future. The answer is of course yes, RedisModule_CreateTimer will return immediately and schedule the callback to fire later.