Should we add an asynchronous RedisChatMessageHistory
implemetion?
#18312
zhangkai803
started this conversation in
Ideas
Replies: 1 comment 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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