StackExchange / StackExchange.Redis

General purpose redis client
https://stackexchange.github.io/StackExchange.Redis/
Other
5.89k stars 1.51k forks source link

StringGetWithExpiry value is null #2551

Open ark8911 opened 1 year ago

ark8911 commented 1 year ago

Run the program on my mac 10.15.7 The value obtained using the StringGetWithExpiry method is empty, but the expiration time exists. This result value is valid on redis.

image image

The results all work very well under Windows 11. dotnet sdk 7.0.100 netframework: net7.0

ark8911 commented 1 year ago

now, reboot mac is work well

mgravell commented 1 year ago

Can you clarify the state here? Is this working or failing? Do you have runnable code that sets up test data and shows it failing? (easier to debug with runnable code)

mgravell commented 1 year ago

Also, what server version, and: is this inside a transaction, or is it just on the raw database API?

ark8911 commented 1 year ago

thanks. StackExchange.Redis version is 2.6.122. my redis version 6.2.4.This still happens suddenly now. The api I use is IDatabase

image