MCPcopy Create free account
hub / github.com/aws-samples/personalization-apis / config_cache_inheritance

Function config_cache_inheritance

tests/unit/test_config.py:23–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22@fixture
23def config_cache_inheritance():
24 return {
25 "cacheControl": {
26 "userSpecified": {
27 "maxAge": 10,
28 "directives": "private"
29 },
30 },
31 "namespaces": {
32 "ns-inherit-root": {
33 "recommenders": {
34 "recommend-items": {
35 "recommended-for-you": {
36 }
37 }
38 }
39 },
40 "ns-inherit-1": {
41 "cacheControl": {
42 "userSpecified": {
43 "maxAge": 20,
44 "directives": "private"
45 },
46 },
47 "recommenders": {
48 "recommend-items": {
49 "recommended-for-you": {
50 "cacheControl": {
51 "userSpecified": {
52 "maxAge": 30,
53 "directives": "private"
54 }
55 }
56 }
57 },
58 "related-items": {
59 "similar": {
60 "cacheControl": {
61 "userSpecified": {
62 "maxAge": 40,
63 "directives": "private"
64 }
65 }
66 }
67 }
68 }
69 },
70 "ns-inherit-2": {
71 "recommenders": {
72 "recommend-items": {
73 "recommended-for-you": {
74 "cacheControl": {
75 "userSpecified": {
76 "maxAge": 60,
77 "directives": "private"
78 }
79 }
80 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected