A quick fix for Cache has no 'list' attribute.

This commit is contained in:
Dmitry Kuzmenko 2017-04-05 16:45:32 +03:00
parent 4d932691f1
commit c0fd5634cf

View file

@ -237,6 +237,8 @@ class Cache(object):
fun = '{0}.ls'.format(self.driver)
return self.modules[fun](bank, **self._kwargs)
list = ls
def contains(self, bank, key=None):
'''
Checks if the specified bank contains the specified key.