mongoc_auto_encryption_opts_set_key_expiration
Synopsis
void mongoc_auto_encryption_opts_set_key_expiration ( mongoc_auto_encryption_opts_t *opts, uint64_t cache_expiration_ms);
Parameters
- opts: The mongoc_auto_encryption_opts_t <>
- cache_expiration_ms: The data encryption key cache expiration time in milliseconds. Defaults to 60,000. 0 means "never expire".
See also:
mongoc_client_enable_auto_encryption() <>
In-Use Encryption <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/in-use-encryption/>
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
Info
Jan 27, 2026 1.30.6 libmongoc