django/django

View on GitHub
django/core/cache/backends/base.py

Summary

Maintainability
B
6 hrs
Test Coverage

File base.py has 320 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"Base Cache class."
import time
import warnings

from asgiref.sync import sync_to_async
Severity: Minor
Found in django/core/cache/backends/base.py - About 3 hrs to fix

    BaseCache has 22 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class BaseCache:
        _missing_key = object()
    
        def __init__(self, params):
            timeout = params.get("timeout", params.get("TIMEOUT", 300))
    Severity: Minor
    Found in django/core/cache/backends/base.py - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status