Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it threadsafe to use different pipeline for the same connection at the same time? #3215

Open
frelion opened this issue Apr 24, 2024 · 0 comments

Comments

@frelion
Copy link

frelion commented Apr 24, 2024

import redis


redis = redis.StrictRedis(...) # global connection

def worker() -> list:
    with redis.pipeline() as pipe:
        """push some command into pipe"""
        result = pipe.execute()
    return result

Is the worker function threadsafe?

thank you very much!

@frelion frelion changed the title Is it threadsafe to connect to the same redis connection while using different pipeline at the same time? Is it threadsafe to use different pipeline for the same connection at the same time? Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant