Skip to content

'CacheStatTracker' object has no attribute 'raw_client' #439

Closed
@robbyt

Description

@robbyt

In my application, I use Redis as a lock manager for some resources. The DDT code seems to add an intermediary to the Django cache system that breaks the use of cache.raw_client

e.g.,

from django.core.cache import cache
redis = cache.raw_client
lock = redis.lock(name='key')

The error I receive when DDT is loaded:
AttributeError: 'CacheStatTracker' object has no attribute 'raw_client'

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