Skip to content

Allow setting cache VERSION #14

@mwarkentin

Description

@mwarkentin

It would be nice if we could set the cache version in the url.

Maybe something like 'hiredis:///unix/path/to/socket/file.sock/db[/prefix[:version]]'

This would map closely with the keys that are generated: `"my-prefix:2:my-key"

I currently need to do the following:

CACHES = {'default': django_cache_url.config()}
CACHES['default']['VERSION'] = 2

Would this be something you're interested in adding?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions