English 中文(简体)
c 开办企业图书馆
原标题:c# Enterprise library Caching performance about CacheManager

在业绩方面利用图书馆的最佳方式是什么。 我在我的剪辑表中有很多数据,希望收集。

请允许我说,我有3个表格。

  1. AssignmentHead
  2. AssignmentRow
  3. Items

如今,Iam将表格储存为浅层:

private CacheManager _manager = _manager = CacheFactory.GetCacheManager();

我有一只CacheManger,一只储存类似数据。

_manager.add("Heads",ListofAssignmentHeads);
_manager.add("Rows",ListofAssigmmentRows);
_manager.add("Items",ListOfItems);

在检索像首脑这样的数据时:

_manager.GetData("Heads");

然后,一刀切地拿着一张头目清单,用林克来质疑我想要的东西。 但是,这是这样做的最佳方式,或者最好为每个桌子设立3个CacheManager,并插入主要钥匙,然后插入目标。

_headManager.add("1",HeadObject);

我确实需要你就这些建议提出咨询意见。 得到帮助。

最佳回答

在个人方面,所有东西几乎平等,我将按我需要的格式收集数据。 这样,你就能够直接获得你所需要的信息。 在你的例子中,有多个CacheManagers,主要钥匙是切身钥匙。

它看着你们已经掌握了归还名单的方法,你正在打着名单。 相反,一旦数据装齐后,我就会对清单感到气愤,然后进行关键调查,而不是按每项要求公布清单。 如果贵国名单庞大,如果你必须搜寻每一份请求清单,那么你就会看到业绩受到打击,因为发现清单中的内容是O(N)诉O(1),是没有 has碰撞的海滩。

当然,如果你想要支持动态名单,那么你可能更愿意根据需要增加一个CacheManager的名字,因为创建充满活力的CacheManagers是一个工作领域。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签