views:

77

answers:

5

Hi,

I am looking up keyvalue stores that support C#, but i found that most of them are implemented by Java. Could anybody recommend some to me? It would be super if it is very light-weight, i.e., appearing as a library. thanks!!

+4  A: 
Dictionary<key,Value>  

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

KeyValuePair<string, string>

              http://msdn.microsoft.com/en-us/library/5tbh8a42.aspx
anishmarokey
+2  A: 

If you mean a NoSQL store, http://stackoverflow.com/questions/1777103/what-nosql-solutions-are-out-there-for-net has a list of these.

Pieter
A: 

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

Cheers

Ramesh Vel
A: 

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

Hashtable = ht = new HashTable();

or

Dictionary d1 = new Dictionary();

or

Dictionary d2 = new Dictionary();

etc..

Brad
A: 

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.

Laurion Burchall