Modify the default server cache configuration

hi everyone, as we know there r two types of caches. one is local cache, such as Realm, role and user metadata stored in local cache. the local cache depend on cache work to send the invalidation messages to update .
Could i use distribute cache mode to store these info instead local cache??if so the work could be configured as distributed too??