def invalidate_user(user_id, contest_id=0):
cache.delete_many([USER_TOTAL_COUNT.format(user=user_id, contest=contest_id),
USER_TOTAL_LIST.format(user=user_id, contest=contest_id),
USER_AC_COUNT.format(user=user_id, contest=contest_id),
USER_AC_DIFF_COUNT.format(user=user_id, contest=contest_id),
USER_AC_LIST.format(user=user_id, contest=contest_id)])
评论列表
文章目录