@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
21 lines • 734 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* The cache used to store the properties of the client encryption key
* see {@link ClientEncryptionKeyProperties}
* @hidden
*/
export class ClientEncryptionKeyPropertiesCache {
// key is database rid + '/'+ clientEncryptionKeyId
clientEncryptionKeyPropertiesCache;
constructor() {
this.clientEncryptionKeyPropertiesCache = new Map();
}
get(key) {
return this.clientEncryptionKeyPropertiesCache.get(key);
}
set(key, clientEncryptionKeyProperties) {
this.clientEncryptionKeyPropertiesCache.set(key, clientEncryptionKeyProperties);
}
}
//# sourceMappingURL=ClientEncryptionKeyPropertiesCache.js.map