yeahoffline / redis-mock

Node.js redis client mock
213 stars 111 forks source link

Key TTL limitations #186

Open lafafm opened 3 years ago

lafafm commented 3 years ago

When setting a new key with some TTL: redisClient.set(key, JSON.stringify(value), 'EX', expireInSeconds)

If expireInSeconds is greater than ~25 days (2160000 seconds) - redis-mock cuts it to 2147483.647 (which is looks like some integer limitations for some reason)