apache / opendal

Apache OpenDAL: One Layer, All Storage.
https://opendal.apache.org
Apache License 2.0
3.47k stars 486 forks source link

feat(services/redis): add support of list operation #5304

Open PragmaTwice opened 2 weeks ago

PragmaTwice commented 2 weeks ago

Which issue does this PR close?

Closes #.

Rationale for this change

Currently only read and write is supported for redis service.

After #5208 we can have a better support for kv scanning, so list supporting for redis is relatively easy to implement and can be efficient.

What changes are included in this PR?

We support (async) list operation for redis service via kv::Adaptor::scan to fetch paged key lists with a prefix using Redis SCAN command.

Are there any user-facing changes?

User now can perform list on redis schema.

PragmaTwice commented 2 weeks ago

Funny to see it succeeded on redis but failed on redis cluster and kvrocks.

PragmaTwice commented 2 weeks ago

Fixed.