Use Cache#getAs instead of Cache#get

if we don't use `getAs[Id]`, CacheIdContainer and AuthConfig no need to have ClassTag.