@aws-amplify/core
Version:
Core category of aws-amplify
17 lines (13 loc) • 420 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { SupportedCategory } from '../types';
const PROVIDER_NAME = 'pinpoint';
/**
* Returns a unique cache key for a particular category/appId combination.
*
* @internal
*/
export const getCacheKey = (
appId: string,
category: SupportedCategory,
): string => `${category}:${PROVIDER_NAME}:${appId}`;