C++ Caching requirement

Hi experts
I have a requirement to cache the result of webservice call for a finite duration, I want to know which data structure should I use to cache the result. I need to store 4 columns (strings).
This requirement is similar to implementing hashmap for 2 columns of data. But in my case, the number of columns are 4. Also 1 of the column would be the timestamp.
This data structure should be sortable and I should be able to find the elements in the data structure by providing the key (column1).

This is really urgent. Please help.

1
2
3
struct data{ string a, b, c; };

std::map< std::string, data > cache;

maybe?
Topic archived. No new replies allowed.