mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 03:41:12 +00:00
Add django constance to thirdpart to void dependency
This commit is contained in:
26
thirdpart/constance/backends/__init__.py
Normal file
26
thirdpart/constance/backends/__init__.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
Defines the base constance backend
|
||||
"""
|
||||
|
||||
|
||||
class Backend(object):
|
||||
|
||||
def get(self, key):
|
||||
"""
|
||||
Get the key from the backend store and return the value.
|
||||
Return None if not found.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def mget(self, keys):
|
||||
"""
|
||||
Get the keys from the backend store and return a list of the values.
|
||||
Return an empty list if not found.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def set(self, key, value):
|
||||
"""
|
||||
Add the value to the backend store given the key.
|
||||
"""
|
||||
raise NotImplementedError
|
Reference in New Issue
Block a user