gpt4 book ai didi

c# - UserManager.FindByIdAsync(User.Identity.GetUserId()) 是否缓存?

转载 作者:太空狗 更新时间:2023-10-29 21:50:25 43 4
gpt4 key购买 nike

当我调用 UserManager.FindByIdAsync(User.Identity.GetUserId()) 时,它是缓存,还是在每次调用时调用数据库?

最佳答案

它不缓存,底层存储/dbcontext 可能缓存,但管理器本身不缓存,它总是调用 UserStore。

关于c# - UserManager.FindByIdAsync(User.Identity.GetUserId()) 是否缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20451151/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com