许多缓存<t>或许多适配器<t> </t> </t>

时间:2013-01-20 11:12:46

标签: c# asp.net caching enterprise-library

我有一个架构问题:

在我的应用程序中,我们有4个DataModel。

我们希望将每个节点保存在缓存中。

问题是哪种方式更好:

一个。创建ICache<T>的许多实现 使用set<T>get<T>

湾创建ICacheAdaptor<T>的许多实现。 适配器负责投射object to different types 并且只有一个缓存object setget(object)

我想我不需要web.config中每个缓存的不同设置。

你会建议什么?

0 个答案:

没有答案
相关问题