What type of data can I store in a cache?
All data stored in Momento Cache can be provided as a string or byte array. Check out the API reference in Docs for more details, but here’s a quick summary.
- Scalar values: simple string/byte arrays
- Dictionary: Key/value object storage allowing you to fetch all or subset of data with a single call
- Set: An array of unique elements
- Sorted Set: A score-based array of strings that automatically sorts by score
- List: An ordered array of strings