microwww / redis-mock

redis server for java, java redis mock
https://github.com/microwww/jedis-mock
Apache License 2.0
47 stars 18 forks source link

dbSize 和 pexpire 命令在行为上与官方服务端不一致 #1

Closed LamGC closed 3 years ago

LamGC commented 4 years ago

dbSize 命令在数据库为空的情况下依然返回16(Linux: 0, Windows: 0)命令:dbsize pexpire命令在指定key不存在的情况下依然返回1(Linux: 0, Windows: 0)命令:pexpire test 500 对比服务端版本为:

出现问题的版本:0.1.0-3.0

LamGC commented 4 years ago

对比过程中所使用的Windows版本Redis: Redis-x64-3.0.504.zip

lichangshu commented 3 years ago

dbSize 命令在数据库为空的情况下依然返回16(Linux: 0, Windows: 0)命令:dbsize pexpire命令在指定key不存在的情况下依然返回1(Linux: 0, Windows: 0)命令:pexpire test 500 对比服务端版本为:

  • Windows: 3.0.504
  • Linux: (docker) redis:3-alpine3.8 | 3.2.12

出现问题的版本:0.1.0-3.0

谢谢 我最近会修复一下