def get_cache_size(self):
        sizes = []
        for path in self.get_cache_files(self.base_dir):
            if path == self.db_path:
                continue
            file_info = os.stat(path)
            sizes.append(file_info[stat.ST_SIZE])
        return sum(sizes)
Encodes a user key into a particular format. The result of this method
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/image_cache/drivers/sqlite.py/Driver.get_cache_size--crossover with--dataset/ETHPy150Open openstack/swauth/swauth/authtypes.py/Sha1.encode