(prefix, user)
return
Create key from prefix-user.pk and delete from cache.
Create key from prefix-user.pk and delete from cache.
Create key from prefix - user . pk and delete from cache .
def delete_cache(prefix, user):
    """
    Create key from prefix-user.pk and delete from cache.
    """
    key = f"{prefix}-{user.pk}"

    # Check if it exists and delete object from cache.
    if cache.get(key):
        cache.delete(key)
        logger.debug(f'deleted {key} from cache')

    return
def delete_cache ( prefix , user ) : key = f"{prefix}-{user.pk}" # Check if it exists and delete object from cache. if cache . get ( key ) : cache . delete ( key ) logger . debug ( f'deleted {key} from cache' ) return