I have a string that I need to cache with three values

It looks as follows:

ID: 24000000
STR: “some random string that could be hundreds of characters long”

What is the best way to store this data together in the cache?

Keep in mind that I could have upwards of 24million different items in my cache

Jeremy R. DeYoung