You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the problem is that since this library uses an uint64 it's impossible to do key.GetExpire() == rm.NO_EXPIRE because the first is a uint64 and the second a signed int (in this case also negative) and we have to either do int64(keyTTL) != rm.NO_EXPIRE or keyTTL == ^uint64(0)
Wouldn't be better to have GetExpire return a signed int so we can just compare them directly?
The text was updated successfully, but these errors were encountered:
From my understanding redis uses
msec_t
which is along
when returning the value ofGetExpire
herehttps://github.com/antirez/redis/blob/unstable/src/module.c#L1636
the problem is that since this library uses an
uint64
it's impossible to dokey.GetExpire() == rm.NO_EXPIRE
because the first is a uint64 and the second a signed int (in this case also negative) and we have to either doint64(keyTTL) != rm.NO_EXPIRE
orkeyTTL == ^uint64(0)
Wouldn't be better to have
GetExpire
return a signed int so we can just compare them directly?The text was updated successfully, but these errors were encountered: