Are there KeyValue repositories used by .NET?

I am looking for keyvalue repositories that support C #, but I found that most of them are implemented by Java. Can someone recommend me? It would be super if it were very light, i.e. Appeared as a library. thanks!!

+7
c # key-value store
source share
8 answers

There are tons, depending on your needs.

Another that you may consider is the System.Runtime.Caching namespace , which was added in .NET 4.0.

+3
source share
Dictionary<key,Value> http://msdn.microsoft.com/en-us/library/xfhwa508.aspx KeyValuePair<string, string> http://msdn.microsoft.com/en-us/library/5tbh8a42.aspx 
+10
source share

If you want a persistent keystore to be stored in a process (like Berkeley Db), take a look at PersistentDictionary, which is part of the ManagedEsent project. A persistent dictionary looks like a regular dictionary, but is maintained by the database. If you build from current sources, you will get Linq support that will allow you to make queries.

+8
source share

If you mean NoSQL storage, What NoSQL solutions exist for .NET? there is a list of them.

+5
source share

Redis is great. And there is an awesome C # redis ServiceStackRedis client . Its very light weight.

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

+2
source share

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

 Hashtable = ht = new HashTable(); 

or

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

or

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

and etc.

+1
source share
 > I am looking up keyvalue stores that support C# 

If you are looking for your own repository of .NET key values, try NCache . It is built using C #. I don’t think of others.

His suggestions are much more than just a .NET key value store . You can only stick to storing keys and values ​​in it.

 Cache cache = NCache.InitializeCache("CacheName"); cache.Add("Key", "Value"); object value = cache.Get("Key"); 
+1
source share

GetCache is a very simple in-memory cache key developed in .Net 4.5. The server and client library can be downloaded using Nuget.

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

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

0
source share

All Articles