seppo0010 / rlite

self-contained, serverless, zero-configuration, transactional redis-compatible database engine. rlite is to Redis what SQLite is to SQL.
BSD 2-Clause "Simplified" License
1.06k stars 39 forks source link

HLEN on non-existent key returns a incorrect value #29

Closed ikreymer closed 7 years ago

ikreymer commented 7 years ago

Using rlite-py:

>>> import hirlite
>>> r = hirlite.Rlite()
>>> r.hlen('foo')
4341476813

hlen should return 0 for non-existent key (https://redis.io/commands/hlen)

seppo0010 commented 7 years ago

The bug is already fixed in rlite, but rlite-py is running an old version. I'll upload a new one now. Thanks for the report.

seppo0010 commented 7 years ago

The new version (0.2.1) is up. Please take a look and let me know how it goes!

ikreymer commented 7 years ago

Yes, confirm that it's fixed, thanks!