mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
11 lines
286 B
Python
11 lines
286 B
Python
class Connection(dict):
|
|
def set(self, key, value):
|
|
self[key] = value
|
|
|
|
def mget(self, keys):
|
|
values = []
|
|
for key in keys:
|
|
value = self.get(key, None)
|
|
if value is not None:
|
|
values.append(value)
|
|
return values
|