'Returns a list of records about cached images.'

def get_cached_images(self):

    LOG.debug('Gathering    cached    image    entries.')
    entries = []
    for path in get_all_regular_files(self.base_dir):
        image_id = os.path.basename(path)
        entry = {'image_id': image_id}
        file_info = os.stat(path)
        entry['last_modified'] = file_info[stat.ST_MTIME]
        entry['last_accessed'] = file_info[stat.ST_ATIME]
        entry['size'] = file_info[stat.ST_SIZE]
        entry['hits'] = self.get_hit_count(image_id)
        entries.append(entry)
    return entries
