'Returns a list of records about cached images.'

def get_cached_images(self):

    LOG.debug('Gathering    cached    image    entries.')
    with self.get_db() as db:
        cur = db.execute('SELECT\n                                                                                                                    image_id,    hits,    last_accessed,    last_modified,    size\n                                                                                                                    FROM    cached_images\n                                                                                                                    ORDER    BY    image_id')
        cur.row_factory = dict_factory
        return [r for r in cur]
