def invalidate_cache(self, product):
        try:
            cache.delete_pattern('product:{}|*'.format(product.id))
        except AttributeError:
            pass
Find a single item with attributes matching ``**kwargs``.
dataset/ETHPy150Open awesto/django-shop/shop/admin/product.py/InvalidateProductCacheMixin.invalidate_cache--crossover with--dataset/ETHPy150Open jacobian-archive/openstack.compute/openstack/compute/base.py/ManagerWithFind.find