Skip to content

Investigate/replace thread local usage in _RequestCache #538

Description

@ormsbee

This is not async-friendly:

class _RequestCache(threading.local):
"""
A thread-local for storing the per-request caches.
The data is a dict of dicts, keyed by namespace.
"""
def __init__(self):
super().__init__()
self._data = {}

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