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

1"""Request-scoped caching — local implementation removed. 

2 

3All request-scoped caching is now provided by ``lexigram.cache``. 

4 

5Migration guide 

6--------------- 

7Replace imports from this module as follows: 

8 

9 # Before 

10 from lexigram.admin.services.request_cache import cache_in_request, get_request_cache 

11 

12 # After 

13 from lexigram.cache import cache_in_request, get_request_cache 

14 

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""" 

19 

20from __future__ import annotations