Can integer keys / values be stored in LevelDB?
I have searched for key value stores that support integer keys and integer values. LevelDB seems a good option, though I can't find any information on whether integer values/keys are supported You can store pretty much anything in LevelDB. You provide opaque slices of data into LevelDB via the Slice structure. Here is an example: int intKey = 256; int intValue = 256*256; Slice key((char*)&intKey, sizeof(int)); Slice value((char*)&intValue, sizeof(int)); db->Put(leveldb::WriteOptions(), key, value); And that's pretty much it! However , one thing to note is that while it's generally fine to