Quantcast
Channel: How to "EXPIRE" the "HSET" child key in redis? - Stack Overflow
Viewing all articles
Browse latest Browse all 19

Answer by schn ran for How to "EXPIRE" the "HSET" child key in redis?

$
0
0
  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.


Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>