redis accumulate & publish a set of operations -
is possible instruct redis accumulate set of operations , issue "publish all" command publish entire set of operations ( in linear order ) ?
so you'd somehow set marker ( startpublish
? ) , cache accumulate operations ( hdel
hset
) received point on.
finally you'd issue command ( publishall
? ) , redis broadcast commands in linear order received.
important note: need perform set-operations programmatically in node.js, via redis sentinel client ( package redis-sentinel-client
).
you can queue multiple commands redis using multi
, exec
redis command.
so end this:
redis > multi redis > set foo bar redis > set alpha beta redis > exec
what array, in same order execute commands. result set @ index 0 of resulting array contain error and/or result of command set foo bar
.
example multi command can found here: http://redis.io/commands/multi
Comments
Post a Comment