This module is still very much in beta, I'm trying to get all ther persistance mechanisms working with both AOF and snapshots before we can get a definitive 1.0
make
redis-server --loadmodule main.so
2 main methods
ctq.add
ctq.cancel
ctq.add
Takes in 4 parameters
ctq.add myKey value list 10
This will add value
as a message to the list
after 10 seconds.
ctq.cancel
Takes in 1 parameters, returns OK
if key was able to be deleted. nil
if the key was not found.
ctq.add myKey myValue list 60
ctq.cancel myKey
This will delete the message at myKey
and it will no longer be added to list
. Note, cancel needs to be run before the 60
seconds expire.