You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment there is only support for eviction to the maximum length of a stream, aka MAXLEN
Please also consider adding support for MINID as in https://redis.io/commands/xtrim
lettuce already offers API to trim by MINID RedisStreamAsyncCommands#xtrim with XTrimArgs argument, XTrimArgs has minId field for that https://github.com/lettuce-io/lettuce-core/blob/main/src/main/java/io/lettuce/core/api/async/RedisStreamAsyncCommands.java#L366
The text was updated successfully, but these errors were encountered:
At the moment there is only support for eviction to the maximum length of a stream, aka MAXLEN
Please also consider adding support for MINID as in https://redis.io/commands/xtrim
spring classes that support XTRIM with MAXLEN but not MINID
StreamOperations#trim
https://github.com/spring-projects/spring-data-redis/blob/3.0.x/src/main/java/org/springframework/data/redis/core/StreamOperations.java#L539 and https://github.com/spring-projects/spring-data-redis/blob/3.0.x/src/main/java/org/springframework/data/redis/core/StreamOperations.java#L552RedisStreamCommands#xTrim
https://github.com/spring-projects/spring-data-redis/blob/3.0.x/src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java#L909 and https://github.com/spring-projects/spring-data-redis/blob/3.0.x/src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java#L922lettuce already offers API to trim by MINID
RedisStreamAsyncCommands#xtrim
withXTrimArgs
argument,XTrimArgs
hasminId
field for thathttps://github.com/lettuce-io/lettuce-core/blob/main/src/main/java/io/lettuce/core/api/async/RedisStreamAsyncCommands.java#L366
The text was updated successfully, but these errors were encountered: