'Return the contents of the cache.
Args:
exclude (Object or list of Object): object(s) to ignore
Returns:
objects (list): the Objects inside this location'

def get(self, exclude=None):

    if exclude:
        pks = [pk for pk in self._pkcache if (pk not in [excl.pk for excl in make_iter(exclude)])]
    else:
        pks = self._pkcache
    try:
        return [self._idcache[pk] for pk in pks]
    except KeyError:
        self.init()
        try:
            return [self._idcache[pk] for pk in pks]
        except KeyError:
            logger.log_err(('contents    cache    failed    for    %s.' % self.obj.key))
            return list(ObjectDB.objects.filter(db_location=self.obj))
