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 value
In many cases a more elaborate encoding scheme for integer keys is a better choice. Packing an int into its two-complement representation in a char* (as suggested in another answer to this question) is one option; varint encoding is another one (saves space for small integers, can store arbitrary numbers without an upper bound).