Skip to content

hexpire exposed even though valkey doesn't support it. #78

Closed
@NegatioN

Description

@NegatioN

Version: valkey-py: 6.0.0 (installed using pip install "valkey[libvalkey]") valkey: docker container valkey/valkey:8.0

Platform: Python 3.11.6 on Manjaro Linux

Description:
Should hexpire be exposed as a command in Valkey-py if Valkey doesn't support it?
Ideally hexpire is implemented, and everything is fine, but now it seems to be in a weird limbo state.

How to reproduce:

Run container: docker run -it --rm -p 6379:6379 --name valkey valkey/valkey:8.0

python:

import valkey
r = valkey.Valkey(host='localhost', port=6379, db=0)
event = {
     'air_quality': 256,
     'battery_level':89
 }
r.hset('yolo', mapping=event)
r.hexpire('yolo', 60, 'air_quality')
>>> ResponseError: unknown command 'HEXPIRE', with args beginning with: 'yolo' '60' 'FIELDS' '1' 'air_quality' 

Metadata

Metadata

Assignees

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