Share via


SqlColumnEncryptionAzureKeyVaultProvider.ColumnEncryptionKeyCacheTtl Property

Definition

Gets or sets the lifespan of the decrypted column encryption key in the cache. Once the timespan has elapsed, the decrypted column encryption key is discarded and must be revalidated.

public:
 virtual property Nullable<TimeSpan> ColumnEncryptionKeyCacheTtl { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public override TimeSpan? ColumnEncryptionKeyCacheTtl { get; set; }
member this.ColumnEncryptionKeyCacheTtl : Nullable<TimeSpan> with get, set
Public Overrides Property ColumnEncryptionKeyCacheTtl As Nullable(Of TimeSpan)

Property Value

Remarks

Internally, there is a cache of column encryption keys (once they are decrypted). This is useful for rapidly decrypting multiple data values. The default value is 2 hours. Setting the ColumnEncryptionKeyCacheTtl to zero disables caching.

Applies to