Table of Contents

Method SetKeyExpiration

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.Encryption.dll

SetKeyExpiration(TimeSpan?)

Sets the data encryption key cache expiration time. If not set, it defaults to 60 seconds. If set to TimeSpan.Zero, the cache never expires.

public void SetKeyExpiration(TimeSpan? keyExpiration)

Parameters

keyExpiration TimeSpan?

The data encryption key cache expiration time.