Spring Redis Does Not Delete the Stream Entries

559 views Asked by At

I'm using the Redis Template and I want to delete the entries of the stream after processing it. I used the below code but it didn't delete from the Redis Streams.

redisTemplate.opsForStream().delete("my-stream-key",record.getId().getValue());
1

There are 1 answers

0
ramit On

Redis streams don't support delete operations. Only trim() is available to fix the size of stream events by removing older ones.