<PackageReference Include="Microsoft.Identity.Client" Version="4.82.1" />

Microsoft.Identity.Client.Cache.CacheKeyFactory

static class CacheKeyFactory
Responsible for computing: - external distributed cache key (from request and responses) - internal cache partition keys (as above, but also from cache items) These are the same string, but MSAL cannot control if the app developer actually uses distributed caching. However, MSAL's in-memory cache needs to be partitioned, and this class computes the partition key.
public static string GetAppTokenCacheItemKey(string clientId, string tenantId, string popKid, SortedList<string, string> cacheKeyComponents = null)

public static string GetExternalCacheKeyFromResponse(AuthenticationRequestParameters requestParameters, string homeAccountIdFromResponse)

public static string GetIdTokenKeyFromCachedItem(MsalAccessTokenCacheItem accessTokenCacheItem)

public static string GetInternalPartitionKeyFromResponse(AuthenticationRequestParameters requestParameters, string homeAccountIdFromResponse)

public static string GetKeyFromAccount(MsalAccountCacheItem accountCacheItem)

public static string GetKeyFromCachedItem(MsalAccessTokenCacheItem accessTokenCacheItem)

public static string GetKeyFromCachedItem(MsalRefreshTokenCacheItem refreshTokenCacheItem)

public static string GetKeyFromCachedItem(MsalIdTokenCacheItem idTokenCacheItem)

public static string GetKeyFromCachedItem(MsalAccountCacheItem accountCacheItem)

public static string GetKeyFromRequest(AuthenticationRequestParameters requestParameters)

public static string GetOboKey(string oboCacheKey, UserAssertion userAssertion)

public static string GetOboKey(string oboCacheKey, string homeAccountId)