mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
parent
198476e345
commit
cd6d1f9221
4 changed files with 11 additions and 0 deletions
4
lib/ansible/plugins/cache/base.py
vendored
4
lib/ansible/plugins/cache/base.py
vendored
|
@ -26,6 +26,9 @@ from six import add_metaclass
|
|||
@add_metaclass(ABCMeta)
|
||||
class BaseCacheModule:
|
||||
|
||||
def __init__(self):
|
||||
self.__getstate__ = self.copy
|
||||
|
||||
@abstractmethod
|
||||
def get(self, key):
|
||||
pass
|
||||
|
@ -53,3 +56,4 @@ class BaseCacheModule:
|
|||
@abstractmethod
|
||||
def copy(self):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue