Skip to content

[Store] Add support for Redis #269

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Aug 6, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues
License MIT

I continue to bench different store, and the next one is Redis

@carsonbot carsonbot added Feature New feature Store Issues & PRs about the AI Store component Status: Needs Review labels Aug 6, 2025
->useAttributeAsKey('name')
->arrayPrototype()
->children()
->variableNode('connection_parameters')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about going with a DSN here instead? For Symfony cache we use REDIS_URL etc. this way we can just reuse an existing Redis connection

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice indeed.

But Symfony cache has a huge amount of code to parse the the DSN.

I don't want to bloat the the store for now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good that the RedisStore only takes an instance of Redis. It is not its responsibility to instantiate the Redis client.
The bundle configuration should accept a redis service name, which could be created directly in the application or with SncRedisBundle (which accepts dsn in config).

@chr-hertel
Copy link
Member

Could you bring in a rag example as well, please? redis cloud or docker compose maybe

@OskarStark
Copy link
Contributor

docker compose if possible please 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Status: Needs Review Store Issues & PRs about the AI Store component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants