Right now Valkyrie doesn't support Redis pipelines, which allow commands to be chained together without waiting for a server response between each command.
This means running some commands together looks like this:
use _ <- try(valkyrie.custom(conn, ["MULTI"], 1000))
use _ <- try(valkyrie.del(conn, [subreddit_key],1000))
use _ <- try(valkyrie.rpush(conn, subreddit_key, text_only, 1000))
use _ <- try(valkyrie.custom(conn, ["EXEC"], 1000))
Perhaps pipeline support would look something like this?
use _ <- try(valkyrie.pipe(conn, 4000)
|> valkyrie.custom(["MULTI"])
|> valkyrie.del([subreddit_key])
|> valkyrie.rpush(subreddit_key, text_only)
|> valkyrie.custom(["EXEC"])
)
Right now Valkyrie doesn't support Redis pipelines, which allow commands to be chained together without waiting for a server response between each command.
This means running some commands together looks like this:
Perhaps pipeline support would look something like this?