Skip to content

Purpose of namespace option #271

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
collimarco opened this issue May 12, 2025 · 0 comments
Open

Purpose of namespace option #271

collimarco opened this issue May 12, 2025 · 0 comments

Comments

@collimarco
Copy link

I see that in the default config/cache.yml and in the readme there is this option:

namespace: <%= Rails.env %>

What is its purpose?

If I understand correctly, it just prefixes every cache key (key column in Solid Cache) with production/ (or development/, etc.)... but why?

It seems redundant to me, since every environment uses a different database (obviously). It also adds unnecessary size to the table and to the indexes.

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

No branches or pull requests

1 participant