Add publish and subscribe to cache