0

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());
Reg Reg
  • 49
  • 4

1 Answers1

0

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

ramit
  • 21
  • 1