you cannot exactly say that "doc values" are a cache. Doc values are a data structure that is optimized for an access pattern "document" -> "list of terms" which is needed for e.g. sorting and aggregations. The implementation of doc values relies on the operating systems "page cache" which maps pages from disk to memory as needed. Also field data is a data structure.