MCPcopy
hub / github.com/jazzband/django-constance / aset

Method aset

constance/base.py:137–140  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

135 return
136
137 async def aset(self, key, value):
138 if key not in settings.CONFIG:
139 raise AttributeError(key)
140 await self._backend.aset(key, value)
141
142 async def amget(self, keys):
143 backend_values = await self._backend.amget(keys)

Calls

no outgoing calls

Tested by 14

test_async_setMethod · 0.36
test_int_proxyMethod · 0.36
test_aset_invalid_keyMethod · 0.36
test_amget_uses_cacheMethod · 0.36