database - Can redis pipeline multiple commands that depend on previous ones? -


i'm very new redis , still playing around it. want test see if relevant project i'm not sure specific command i'm running. users on have got me convinced of performance benefits of using pipelines , transactions thought i'd ask how this.

basically have 2 statements want issue , not have wait result(seems candidate pipe lining. looks this:

does valuex exist? if insert valuey 

its pretty simple far ways have been looking seem wait response if valuex exists, , because i'm doing on billion loops of program grinds halt.

is possible? if helps i'm using java haven't settled on client library(jedis or jredis, still testing). i'm not settled on redis leaning heavily towards it(seems i'm doing speed wise), suggestions acceptable.

no, not possible moment accomplish such thing. seek feature missing moment, available 2.6 version of redis. it's called lua scripting. can execute server commands dependent of previous commands, in one, without need fetch them @ client. more details see here.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -