If the amount of data is so small, as OpenFibers said, you can consider storing it directly in the memory, but your difficulty is probably what type of key is this key-value and whether multiple programs need to read it at the same time. If it is a basic type Of course, you can just use map directly. If it is not a basic type, you can provide a hash algorithm to calculate a unique index for this key, and then use this index to create a map, which should also meet the requirements. If you want multiple processes to read, you can consider using shared memory to save data and synchronize control of write operations. Don't feel the need to use SQLite etc.
If the amount of data is so small, as OpenFibers said, you can consider storing it directly in the memory, but your difficulty is probably what type of key is this key-value and whether multiple programs need to read it at the same time. If it is a basic type Of course, you can just use map directly. If it is not a basic type, you can provide a hash algorithm to calculate a unique index for this key, and then use this index to create a map, which should also meet the requirements. If you want multiple processes to read, you can consider using shared memory to save data and synchronize control of write operations. Don't feel the need to use SQLite etc.
Just put STL into the memory