mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
WIP on the re-implementation of fact caching and various backends.
This commit is contained in:
committed by
Michael DeHaan
parent
fb5a1403dd
commit
aa419044c4
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__))
|
||||
Reference in New Issue
Block a user