static async setCount(ip: string, count: number) { const val = await redisClient.hSet(ip, 'ipHashField', count) await redisClient.expire(ip, this.expireTime) }
Try expire your key.
static async setCount(ip: string, count: number) { const val = await redisClient.hSet(ip, 'ipHashField', count) await redisClient.expire(ip, this.expireTime) }
Try expire your key.