Skip to content

Add approximate trim support for XTRIM [DATAREDIS-1085] #1616

@spring-projects-issues

Description

@spring-projects-issues

Sergey Karimov opened DATAREDIS-1085 and commented

Redis from some version, don't know which exactly, supports following syntax:

xadd somekey maxlen ~ 1 * key1 value1

key feature here is "maxlen ~ 1" (may be any number).

same for:

xtrim somekey ~ 1

There is no way to specify "maxlen ~ 1" for xadd via ReactiveStreamCommands or RedisStreamCommands.

There is no way to specify "xtrim somekey ~ 1" via ReactiveStreamCommands or RedisStreamCommands, only "xtrim somekey 1", which is huge preformance impact compared to "xtrim somekey ~ 1"


Affects: 2.2.3 (Moore SR3)

Issue Links:

Referenced from: pull request https://github.com/spring-projects/spring-data-redis/pull

2 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions