Coverage for src/lexigram/admin/services/request_cache.py: 0%
1 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-24 23:18 +0800
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-24 23:18 +0800
1"""Request-scoped caching — local implementation removed.
3All request-scoped caching is now provided by ``lexigram.cache``.
5Migration guide
6---------------
7Replace imports from this module as follows:
9 # Before
10 from lexigram.admin.services.request_cache import cache_in_request, get_request_cache
12 # After
13 from lexigram.cache import cache_in_request, get_request_cache
15``get_request_cache()`` returns a plain ``dict[str, Any]`` backed by a
16``contextvars.ContextVar``, providing automatic per-request isolation with
17no additional locking.
18"""
20from __future__ import annotations