# The live contents of every cache, keys included

$ curl -s localhost:8080/diag/warm
warmed: books, shapes, nulls

$ curl -s localhost:8080/diag/caches | jq .
{
    "cacheManager": "org.springframework.cache.concurrent.ConcurrentMapCacheManager",
    "caches": {
        "nulls": {
            "implementation": "org.springframework.cache.concurrent.ConcurrentMapCache",
            "nativeStore": "java.util.concurrent.ConcurrentHashMap",
            "entries": {
                "xyz   [String]": "null   [NullValue]"
            }
        },
        "books": {
            "implementation": "org.springframework.cache.concurrent.ConcurrentMapCache",
            "nativeStore": "java.util.concurrent.ConcurrentHashMap",
            "entries": {
                "978-0134685991   [String]": "Book[isbn=978-0134685991, title=Effective Java, year=2018]   [Book]"
            }
        },
        "shapes": {
            "implementation": "org.springframework.cache.concurrent.ConcurrentMapCache",
            "nativeStore": "java.util.concurrent.ConcurrentHashMap",
            "entries": {
                "SimpleKey []   [SimpleKey]": "zero   [String]",
                "SimpleKey [abc, 7]   [SimpleKey]": "two:abc:7   [String]",
                "abc   [String]": "one:abc   [String]"
            }
        }
    }
}
