ó 9(Zc@sPdZddlmZddlmZddlmZdefd„ƒYZdS( s)Null cache: a cache which does not cache.i(tCryptoMaterialsCacheEntry(tCryptoMaterialsCachei(t CacheKeyErrortNullCryptoMaterialsCachecBs5eZdZdd„Zd„Zd„Zd„ZRS(sKNull cache: a cache which does not cache. .. versionadded:: 1.3.0 cCstd|d|ƒS(sˆDoes not add encryption materials to the cache since there is no cache to which to add them. :param bytes cache_key: Identifier for entries in cache :param encryption_materials: Encryption materials to add to cache :type encryption_materials: aws_encryption_sdk.materials_managers.EncryptionMaterials :param int plaintext_length: Length of plaintext associated with this request to the cache :param entry_hints: Metadata to associate with entry (optional) :type entry_hints: aws_encryption_sdk.caches.CryptoCacheEntryHints :rtype: aws_encryption_sdk.caches.CryptoMaterialsCacheEntry t cache_keytvalue(R(tselfRtencryption_materialstplaintext_lengtht entry_hints((sJ/tmp/pip-build-wDUJoH/aws-encryption-sdk/aws_encryption_sdk/caches/null.pytput_encryption_materialss cCstd|d|ƒS(s’Does not add decryption materials to the cache since there is no cache to which to add them. :param bytes cache_key: Identifier for entries in cache :param decryption_materials: Decryption materials to add to cache :type decryption_materials: aws_encryption_sdk.materials_managers.DecryptionMaterials :rtype: aws_encryption_sdk.caches.CryptoMaterialsCacheEntry RR(R(RRtdecryption_materials((sJ/tmp/pip-build-wDUJoH/aws-encryption-sdk/aws_encryption_sdk/caches/null.pytput_decryption_materials)scCstdƒ‚dS(s0Always raises a CacheKeyError. :param bytes cache_key: Cache ID for which to locate cache entries :param int plaintext_length: Bytes to be encrypted by the encryption materials :rtype: aws_encryption_sdk.caches.CryptoCacheEntry :raises CacheKeyError: when called sKey not found in cacheN(R(RRR((sJ/tmp/pip-build-wDUJoH/aws-encryption-sdk/aws_encryption_sdk/caches/null.pytget_encryption_materials6scCstdƒ‚dS(sŲAlways raises a CacheKeyError. :param bytes cache_key: Cache ID for which to locate cache entries :rtype: aws_encryption_sdk.caches.CryptoCacheEntry :raises CacheKeyError: when called sKey not found in cacheN(R(RR((sJ/tmp/pip-build-wDUJoH/aws-encryption-sdk/aws_encryption_sdk/caches/null.pytget_decryption_materials@sN(t__name__t __module__t__doc__tNoneR R R R(((sJ/tmp/pip-build-wDUJoH/aws-encryption-sdk/aws_encryption_sdk/caches/null.pyRs   N(RtRtbaseRt exceptionsRR(((sJ/tmp/pip-build-wDUJoH/aws-encryption-sdk/aws_encryption_sdk/caches/null.pyt s