nalgeon / redka

Redis re-implemented with SQLite
BSD 3-Clause "New" or "Revised" License
3.24k stars 87 forks source link

redis.exceptions.ResponseError: syntax error (set) #29

Closed taochen-ct closed 6 days ago

taochen-ct commented 1 week ago

python 3.9

redis == 5.0.3 redka == 0.5.1

import redis

redis = redis.Redis(host='localhost', port=6379, db=0)

redis.set('my_key', 'my_value', nx=True, px=10)

value = redis.get('my_key')
print(value.decode())  # 输出:my_value

raise Exception redis.exceptions.ResponseError: syntax error (set) because of not support nx and px

nalgeon commented 1 week ago

Does not reproduce. Are you sure you are running Redka 0.5.1? How exactly did you install and run it?

taochen-ct commented 1 week ago

Does not reproduce. Are you sure you are running Redka 0.5.1? How exactly did you install and run it?

image this method on macos run the redka in the console, ./redka app.db the app.db also uesed by flask

nalgeon commented 1 week ago

Oh, I see. It was fixed in ce62018609915de3af7b06338566ac5c532296e1, which came after v0.5.1. Released now in v0.5.2.