mongoc_client_encryption_opts_set_key_expiration(3)

MONGOC_CLIENT_ENCRYPTION_OPTS_SET_KEY_EXPIRATION(3) libmongoc MONGOC_CLIENT_ENCRYPTION_OPTS_SET_KEY_EXPIRATION(3)

SYNOPSIS

void
mongoc_client_encryption_opts_set_key_expiration (

mongoc_client_encryption_opts_t *opts, uint64_t cache_expiration_ms);


PARAMETERS

  • opts: The mongoc_client_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_encryption_new() <>

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.

February 10, 2026 1.30.7