79428980

Date: 2025-02-11 05:52:36
Score: 1
Natty:
Report link

If there is any other approach, please suggest that as well.

In addition to the suggestion of using a Lua script, you could stick to your solution of using INCR and simulate the reset of the counter on the client side by taking the remainder of the returned value.

Something similar to:

int value = jedis.incr("counter") % 25000;
Reasons:
  • RegEx Blacklisted phrase (2.5): please suggest
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Efran Cobisi