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

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -