如何在DependencyRegister(Nop.Web.Framework)中使用缓存 [英] How to use caching in DependencyRegister(Nop.Web.Framework)
本文介绍了如何在DependencyRegister(Nop.Web.Framework)中使用缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1)如何在DependencyRegister.cs(Nop.Web.Framework)中使用缓存?
1) How can i use Caching in DependencyRegister.cs(Nop.Web.Framework)?
2)如何在DependencyRegister.cs(Nop.Web.Framework)中获取当前登录客户?
2) How can i get Current Login Customer in DependencyRegister.cs(Nop.Web.Framework)?
我希望当前的客户ID用于缓存,并且当我们在Dependency中为客户使用_workcontext时,为其提供循环引用错误
i want to current customer id using for Caching and when we use _workcontext for customer in DependencyRegister its give Circular reference error
请指导需要帮助.
致谢,锦缎
推荐答案
对不起,您不能,也不需要.
Sorry, you can't and you don't need it.
依赖项注册仅在nopcommerce启动时发生.
Dependency registration happens only on nopcommerce start-up.
这篇关于如何在DependencyRegister(Nop.Web.Framework)中使用缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文