Skip to content

Request - HGET mapping feature #3070

@hulleyrob

Description

@hulleyrob

Redis 4.5.1

Python 3.11.6 on OSX 14.1.2

It would be nice if a HSET using the mapping feature could be changed to HGET and set the variables if used to the appropriate values.

e.g

r.hset(name,mapping={'field1':field1,'field2':field2})

could be quickly changed to

r.hget(name,mapping={'field1':field1,'field2':field2})

to retrieve the 2 fields into the variables 'mapped' in the dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions