.NET 使用任何 KeyValue 存储吗?

发布于 2024-09-28 14:16:59 字数 1539 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

み青杉依旧 2024-10-05 14:16:59
Dictionary<key,Value>  

               http://msdn.microsoft.com/en-us/library/xfhwa508.aspx

KeyValuePair<string, string>

              http://msdn.microsoft.com/en-us/library/5tbh8a42.aspx
Dictionary<key,Value>  

               http://msdn.microsoft.com/en-us/library/xfhwa508.aspx

KeyValuePair<string, string>

              http://msdn.microsoft.com/en-us/library/5tbh8a42.aspx
顾冷 2024-10-05 14:16:59

如果您想要一个进程内、持久的键值存储(如 Berkeley Db),那么请查看属于 ManagedEsent 项目的 PersistentDictionary。持久字典看起来像普通字典,但由数据库支持。如果您从当前源构建,那么您将获得 Linq 支持,它可以让您进行查询。

If you want an in-process, persistent key-value store (like Berkeley Db) then take a look at the PersistentDictionary which is part of the ManagedEsent project. A persistent dictionary looks like a normal dictionary but is backed by a database. If you build from the current sources then you will get Linq support, which lets you do queries.

山川志 2024-10-05 14:16:59

如果您指的是 NoSQL 存储,.NET 有哪些 NoSQL 解决方案? 有这些的列表。

If you mean a NoSQL store, What NoSQL solutions are out there for .NET? has a list of these.

牛↙奶布丁 2024-10-05 14:16:59

有很多,取决于您的要求。

您可以考虑的另一个是 System.Runtime.Caching 命名空间,它已添加到.NET 4.0。

There are tons, depending on your requirements.

Another you can consider is System.Runtime.Caching namespace, which has been added to .NET 4.0.

往昔成烟 2024-10-05 14:16:59

这就是你所说的键值对的意思吗?比如 hashtable()

Hashtable = ht = new HashTable();

Dictionary<double,string> d1 = new Dictionary<double,string>();

其他

Dictionary<String,string> d2 = new  Dictionary<string,string>();

is this what you mean by a key Value pair..like a hashtable()

Hashtable = ht = new HashTable();

or

Dictionary<double,string> d1 = new Dictionary<double,string>();

or

Dictionary<String,string> d2 = new  Dictionary<string,string>();

etc.

不弃不离 2024-10-05 14:16:59
>  I am looking up keyvalue stores that support C#

如果您正在寻找本机 .NET 键值存储,请尝试 NCache。它是使用 C# 构建的。我想没有其他的了。

它提供的不仅仅是一个简单的 .net 键值存储< /a>.您可以坚持只保留其中的键和值。

Cache cache = NCache.InitializeCache("CacheName");
cache.Add("Key", "Value");
object value = cache.Get("Key");
>  I am looking up keyvalue stores that support C#

If you're looking for a native .NET key value store then try NCache. Its built using C#. There are none other i think.

Its offers much more than just a simple .net key value store. You can stick to just keeping keys and values in it.

Cache cache = NCache.InitializeCache("CacheName");
cache.Add("Key", "Value");
object value = cache.Get("Key");
话少情深 2024-10-05 14:16:59

Redis 是一款出色的产品。还有令人惊叹的 C# Redis 客户端 ServiceStackRedis 也可用。它非常轻。

如果您想在 Windows 上尝试 Redis,可以在此处找到 Windows 版本

Redis is a excellent one. And there is amazing c# redis client ServiceStackRedis also available. Its very lightweight.

And if you want to try redis on windows, you can find the windows version here

凉风有信 2024-10-05 14:16:59

FASTER - C# 和 C++ 中的快速并发持久键值存储和日志

https://microsoft.github. io/更快/

FASTER - A fast concurrent persistent key-value store and log, in C# and C++

https://microsoft.github.io/FASTER/

少年亿悲伤 2024-10-05 14:16:59

GetCache是​​在.Net 4.5中开发的一个非常简单的键值内存缓存。
服务器和客户端库可以从 Nuget 下载。

http://www.nuget.org/packages/GetCacheServer/

http://www.nuget.org/packages/GetCacheClient/

GetCache is a very simple key-value in-memory cache developed in .Net 4.5.
Server and client library can be downloaded fron Nuget.

http://www.nuget.org/packages/GetCacheServer/

http://www.nuget.org/packages/GetCacheClient/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文