Springboot使用@redistemplate 自增出错 redis ERR value is not an integer or out of range

    技术2022-07-21  123

    String key = "cms:user:id"; RedisAtomicLong entityIdCounter = new RedisAtomicLong(key, redisTemplate.getConnectionFactory()); Long increment = entityIdCounter.getAndIncrement(); System.out.println(increment);

    Processed: 0.008, SQL: 10