Skip to content

pipeline.hget() returns StrictPipeline, NOT value of key #563

@pothiers

Description

@pothiers

I'm unable to use hget on a pipeline to get an actual key value:

red = redis.StrictRedis()
pl = red.pipeline()

ercnt = pl.hget(ecnt,rid)
logging.debug('Got error on action. ercnt="{}"'.format(ercnt))
# => DEBUG Got error on action.      
ercnt="StrictPipeline<ConnectionPool<Connection<host=localhost,port=6379,db=0>>>

If I replace above get with:
errcnt=red.hget(ecnt,rid)
I get a value. But I worry that its an unprotected one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions