I've switched to using UnifiedJedis in my application, as I needed module commands.
I replaced using my own connection pool by having UnifiedJedis create and manage one.
One thing that I found lacking - is an ability to run a transaction with watches.
Watches have to be done on a connection, before multi is executed.
But UnifiedJedis only lets you get a transaction where multi has already been executed.
I didn't find any other way of making use of watch/multi, except for creating transactions on a connection that I somehow must obtain outside UnifiedJedis (and therefore can't use the latter as a single connection pool source).
I've switched to using
UnifiedJedisin my application, as I needed module commands.I replaced using my own connection pool by having
UnifiedJediscreate and manage one.One thing that I found lacking - is an ability to run a transaction with watches.
Watches have to be done on a connection, before multi is executed.
But
UnifiedJedisonly lets you get a transaction wheremultihas already been executed.I didn't find any other way of making use of
watch/multi, except for creating transactions on a connection that I somehow must obtain outsideUnifiedJedis(and therefore can't use the latter as a single connection pool source).