mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
WIP on the re-implementation of fact caching and various backends.
This commit is contained in:
parent
fb5a1403dd
commit
aa419044c4
11 changed files with 466 additions and 48 deletions
15
lib/ansible/cache/base.py
vendored
Normal file
15
lib/ansible/cache/base.py
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
class BaseCacheModule(object):
|
||||
def get(self, key):
|
||||
raise NotImplementedError("Subclasses of {} must implement the '{}' method".format(self.__class__.__name__, self.__name__))
|
||||
|
||||
def set(self, key, value):
|
||||
raise NotImplementedError("Subclasses of {} must implement the '{}' method".format(self.__class__.__name__, self.__name__))
|
||||
|
||||
def keys(self):
|
||||
raise NotImplementedError("Subclasses of {} must implement the '{}' method".format(self.__class__.__name__, self.__name__))
|
||||
|
||||
def contains(self, key):
|
||||
raise NotImplementedError("Subclasses of {} must implement the '{}' method".format(self.__class__.__name__, self.__name__))
|
||||
|
||||
def delete(self, key):
|
||||
raise NotImplementedError("Subclasses of {} must implement the '{}' method".format(self.__class__.__name__, self.__name__))
|
Loading…
Add table
Add a link
Reference in a new issue