Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new StorageAdapter interface #6

Closed
wants to merge 5 commits into from
Closed

feat: new StorageAdapter interface #6

wants to merge 5 commits into from

Conversation

roziscoding
Copy link
Collaborator

This creates the new StorageAdapter interface, which uses "cascading keys" in the style used by Deno KV, which allows us to essentially have the idea of a "collection" in the storage adapter.

Now, we can store not only chat members, but also chats and users separately, allowing for a cached getChat method, as well as for the existance of a getUser method. Besides that, it is now possible to get a list of all known chats, users, and chat members using get<object>List functions.

@roziscoding roziscoding mentioned this pull request Jun 26, 2023
@roziscoding roziscoding requested a review from KnorpelSenf June 26, 2023 04:51
usage.ts Outdated Show resolved Hide resolved
src/storage.ts Outdated Show resolved Hide resolved
@roziscoding roziscoding linked an issue Jun 26, 2023 that may be closed by this pull request
@roziscoding roziscoding requested a review from KnightNiwrem June 27, 2023 17:08
@roziscoding roziscoding marked this pull request as ready for review July 20, 2023 13:03
@phaalonso
Copy link

There is any change that need to be done to get this merged?

@KnorpelSenf
Copy link
Member

Unsure. It needs to be tested thoroughly by someone, and then refined as necessary. Could you do that?

@roziscoding
Copy link
Collaborator Author

I'll close this for now. In case anyone feels like picking it up, they can just clone the branch.

@roziscoding roziscoding closed this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

feat: track chat list
3 participants