Skip to content

Commit 378e7ac

Browse files
authored
Merge pull request #500 from dahlia/kvstore-list
Add `list()` method to `KvStore` interface
2 parents 037e57b + 89970e8 commit 378e7ac

25 files changed

Lines changed: 1986 additions & 134 deletions

File tree

CHANGES.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,48 @@ To be released.
3636
key ownership verification, recording actor ID, key ID, verification
3737
result, and the verification method used.
3838

39+
- Added optional `list()` method to the `KvStore` interface for enumerating
40+
entries by key prefix. This method takes an optional `prefix` parameter;
41+
when omitted or empty, it returns all entries. This enables efficient
42+
prefix scanning which is useful for implementing features like distributed
43+
trace storage, cache invalidation by prefix, and listing related entries.
44+
[[#498], [#500]]
45+
46+
- Added `KvStoreListEntry` interface.
47+
- Implemented in `MemoryKvStore`.
48+
3949
[#323]: https://github.com/fedify-dev/fedify/issues/323
50+
[#498]: https://github.com/fedify-dev/fedify/issues/498
51+
[#500]: https://github.com/fedify-dev/fedify/pull/500
4052

4153
### @fedify/nestjs
4254

4355
- Allowed Express 5 in the `express` peer dependency range to support NestJS 11.
4456
[[#492], [#493] by Cho Hasang]
4557

46-
4758
[#492]: https://github.com/fedify-dev/fedify/issues/492
4859
[#493]: https://github.com/fedify-dev/fedify/pull/493
4960

61+
### @fedify/sqlite
62+
63+
- Implemented `list()` method in `SqliteKvStore`. [[#498], [#500]]
64+
65+
### @fedify/postgres
66+
67+
- Implemented `list()` method in `PostgresKvStore`. [[#498], [#500]]
68+
69+
### @fedify/redis
70+
71+
- Implemented `list()` method in `RedisKvStore`. [[#498], [#500]]
72+
73+
### @fedify/denokv
74+
75+
- Implemented `list()` method in `DenoKvStore`. [[#498], [#500]]
76+
77+
### @fedify/cfworkers
78+
79+
- Implemented `list()` method in `WorkersKvStore`. [[#498], [#500]]
80+
5081

5182
Version 1.9.2
5283
-------------

0 commit comments

Comments
 (0)