MCPcopy
hub / github.com/redis/redis-py / get_expected_command_policies

Function get_expected_command_policies

tests/helpers.py:52–189  ·  view source on GitHub ↗
(changes_in_defaults={})

Source from the content-addressed store, hash-verified

50
51
52def get_expected_command_policies(changes_in_defaults={}):
53 default_cmd_policies = {
54 "core": {
55 "keys": [
56 "keys",
57 RequestPolicy.ALL_SHARDS,
58 ResponsePolicy.DEFAULT_KEYLESS,
59 ],
60 "acl setuser": [
61 "acl setuser",
62 RequestPolicy.ALL_NODES,
63 ResponsePolicy.ALL_SUCCEEDED,
64 ],
65 "exists": ["exists", RequestPolicy.MULTI_SHARD, ResponsePolicy.AGG_SUM],
66 "config resetstat": [
67 "config resetstat",
68 RequestPolicy.ALL_NODES,
69 ResponsePolicy.ALL_SUCCEEDED,
70 ],
71 "slowlog len": [
72 "slowlog len",
73 RequestPolicy.ALL_NODES,
74 ResponsePolicy.AGG_SUM,
75 ],
76 "scan": ["scan", RequestPolicy.SPECIAL, ResponsePolicy.SPECIAL],
77 "latency history": [
78 "latency history",
79 RequestPolicy.ALL_NODES,
80 ResponsePolicy.SPECIAL,
81 ],
82 "memory doctor": [
83 "memory doctor",
84 RequestPolicy.ALL_SHARDS,
85 ResponsePolicy.SPECIAL,
86 ],
87 "randomkey": [
88 "randomkey",
89 RequestPolicy.ALL_SHARDS,
90 ResponsePolicy.SPECIAL,
91 ],
92 "mget": [
93 "mget",
94 RequestPolicy.MULTI_SHARD,
95 ResponsePolicy.DEFAULT_KEYED,
96 ],
97 "function restore": [
98 "function restore",
99 RequestPolicy.ALL_SHARDS,
100 ResponsePolicy.ALL_SUCCEEDED,
101 ],
102 },
103 "json": {
104 "debug": [
105 "debug",
106 RequestPolicy.DEFAULT_KEYED,
107 ResponsePolicy.DEFAULT_KEYED,
108 ],
109 "get": [

Calls 1

updateMethod · 0.80