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());
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());
Redis streams don't support delete operations. Only trim() is available to fix the size of stream events by removing older ones.