Skip to content

Return nothing from Put Cache Entry in CMC #207

@alex-chew

Description

@alex-chew

See awslabs/aws-encryption-sdk-specification#194.

Current implementation:

/**
* Attempts to add a new entry to the encrypt cache to be returned on subsequent
* {@link #getEntryForEncrypt(byte[], UsageStats)} calls.
*
* In the event that an error occurs when adding the entry to the cache, this function shall still return a
* EncryptCacheEntry instance, which shall act as if the cache entry was immediately evicted and/or invalidated.
*
* @param cacheId The identifier for the item in the cache
* @param encryptionMaterials The {@link EncryptionMaterials} to associate with this new entry
* @param initialUsage The initial usage stats for the cache entry
* @return A new, locked EncryptCacheEntry instance containing the given encryptionMaterials
*/
EncryptCacheEntry putEntryForEncrypt(
byte[] cacheId,
EncryptionMaterials encryptionMaterials,
CacheHint hint,
UsageStats initialUsage
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions