Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Spring boot Redis: move element at first in one sentense on zset

$
0
0

I'm using redis under spring boot.

This is my related code:

this.listOps.remove(key, value);
this.listOps.add(key, value, System.currentTimeMillis());

I'm trying to remove and element and add it on the "first" positotion, updating score.

Is there any way to get it using a single sentence?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



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