private void updateAccountsInCache(Collection<Account> accounts) {
    infoMapLock.writeLock().lock();
    try {
      accountInfoMapRef.get().addOrUpdateAccounts(accounts);
    } finally {
      infoMapLock.writeLock().unlock();
    }
  }
Updates {@link Account}s to in-memory cache.
@param accounts added or modified {@link Account}s
ambry-account/src/main/java/com/github/ambry/account/CachedAccountService.java