@classmethod
def expireAll(sqlmeta, connection=None):
    """
        Expire all instances of this class.
        """
    soClass = sqlmeta.soClass
    connection = connection or soClass._connection
    cache_set = connection.cache
    cache_set.weakrefAll(soClass)
    for item in cache_set.getAll(soClass):
        item.expire()
