Skip to content

UnifiedJedis - can't use transaction and watch together #3662

@veselov

Description

@veselov

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions