简体   繁体   English

使用AppFabric缓存的企业库安全性缓存

[英]Enterprise library security caching using AppFabric caching

Is it possible for Enterprise library security block to use AppFabric caching as opposed to EnterpriseLibraryCaching? Enterprise Library安全性块是否可以使用AppFabric缓存而不是EnterpriseLibraryCaching? Can I just simply swap out the default caching block and use AppFabric caching instead to get my identity and principal? 我可以简单地换掉默认的缓存块并使用AppFabric缓存获取我的身份和主体吗? Please help. 请帮忙。 Thanks 谢谢

I haven't tried it but since the Enterprise Library source code is available it should be possible to change the cache provider (from ent lib to AppFabric cache). 我没有尝试过,但是由于企业库源代码可用,因此应该可以更改缓存提供程序(从ent lib到AppFabric缓存)。

However I believe Ent Lib cache can exist side by side with AppFabric Cache. 但是我相信Ent Lib缓存可以与AppFabric缓存并存。 From your scenario you can use Ent Lib cache "as-is" for your security block and use "AppFabric Cache" for storing copies of your objects/data in memory. 在您的方案中,您可以按原样使用Ent Lib缓存作为安全块,并使用“ AppFabric缓存”将对象/数据的副本存储在内存中。

HTH. HTH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM