Should we add an asynchronous RedisChatMessageHistory
implemetion?
#18312
zhangkai803
announced in
Ideas
Replies: 2 comments 3 replies
-
@zhangkai803 - This is great! I was just looking for this - what about this? https://redis-py.readthedocs.io/en/stable/examples/asyncio_examples.html I just had to code up message truncation with redis, and now need it to be async as well |
Beta Was this translation helpful? Give feedback.
3 replies
-
This worked for my purposes in case it helps anybody out. Using a custom async class for RedisChatMessageHistory to use RunnableWithMessageHistory
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Take advantage of asynchronous capabilities when using
RedisChatMessageHistory
.Motivation
Since Runnable provides some asynchronous functions, we'd better support asynchrony in the underlying storage.
As mentioned in #9100, but no solution worked.
Proposal (If applicable)
Here is an implemention with aioredis based on #1895 :
Here is a demo:
Beta Was this translation helpful? Give feedback.
All reactions