Skip to content

Purpose of namespace option #271

@collimarco

Description

@collimarco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions