def _min_capacity_validator(instance, attribute, value):
    """Attrs validator to require that value is at least 1."""
    if value < 1:
        raise ValueError('Cache capacity must be at least 1')
