getCache

abstract fun getCache(publication: Publication): Cache?

Returns the cache to use or null if caching is not necessary with the given publication.