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

Support database memory #49

Merged
merged 7 commits into from
Jul 21, 2023

Conversation

zhangxiaojiawow
Copy link
Contributor

in most cases, we need to persistence the chat message history to database, and load it by session id, so that the history will not be lost when we restart the server.

this pull request define a class DataBaseChatMessageHistory to support this feature, we also add a redis based databaseChatMessageHistory implementation.

zhangxiaojiawow and others added 7 commits July 20, 2023 23:11
add NoArgsConstructor so that object can be deserialized from their json format str, other case may also need a NoArgsConstructor ( this is needed when load message from database).
@HamaWhiteGG HamaWhiteGG merged commit 5956141 into HamaWhiteGG:dev Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants