Skip to content

ValkeyCache' object has no attribute 'decr_version' #62

@jmichalicek

Description

@jmichalicek

django-valkey version: 0.3.1
django-version: 5.2.7

django-valkey does not currently implement the full interface of BaseCache which can cause compatibility issues with 3rd party packages, for example the popular Django Debug Toolbar which is where I ran across this problem.

The cache backends provided here are pretty out of sync with Django's BaseCache, with the sync and async backends split up and not supported by a single backend, and several methods not implemented.

Locally I have done this and it is working with very basic usage and testing.

from django.core.cache.backends.base import BaseCache

from django_valkey.cache import ValkeyCache


class FullValkeyCache(ValkeyCache, BaseCache):
    pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions