In order to leverage Kotlin's use function, it would be nice for the different cache classes / interfaces to implement the AutoClosable interface. However, a problem is that the close() function signatures clash:
AutoClosable requires fun close() whereas e.g. ContainerKache has public suspend fun close().
In order to leverage Kotlin's
usefunction, it would be nice for the different cache classes / interfaces to implement theAutoClosableinterface. However, a problem is that theclose()function signatures clash:AutoClosablerequiresfun close()whereas e.g.ContainerKachehaspublic suspend fun close().