'Initialise an instance.
:param base: The base directory where the cache should be located.'

def __init__(self, base):

    if (not os.path.isdir(base)):
        os.makedirs(base)
    if ((os.stat(base).st_mode & 63) != 0):
        logger.warning("Directory    '%s'    is    not    private", base)
    self.base = os.path.abspath(os.path.normpath(base))
