include connection when writing CACHE_KEYS