'Refs present in this container.
:param base: An optional base to return refs under.
:return: An unsorted set of valid refs in this container, including
packed refs.'

def keys(self, base=None):

    if (base is not None):
        return self.subkeys(base)
    else:
        return self.allkeys()
