MONGOC_AUTO_EN...KEY_EXPIRATION(3)

πŸ’… MONGOC_AUTO_EN...KEY_EXPIRATION(3) πŸ’…

okay so bestie, welcome to this libmongoc page β€” the title is long and has main character energy, and I'm highkey obsessed with how lowkey this function is. This is literally the function that sets the data encryption key cache expiration on your auto-encryption options, and honestly? It ate πŸ’–. No cap, this is the whole read.

✨ 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, aka your options struct. Hand it over, bestie πŸ’….
  • cache_expiration_ms β€” the data encryption key cache expiration time in milliseconds. It defaults to 60,000 β€” iconic. And fr fr, 0 means "never expire" β€” it's giving "no bedtime", periodt.

πŸ‘€ SEE ALSO: πŸ‘€

  • mongoc_client_enable_auto_encryption()
  • In-Use Encryption

🫢 AUTHOR 🫢

MongoDB, Inc

2009-present, MongoDB, Inc.


okay that's the whole page, bestie 🫢 this one is from libmongoc version 2.5.6, dated Oct 09, 202 β€” and yes the footer runs right into MONGOC_AUTO_EN...KEY_EXPIRATION(3), formatting collab, iykyk 😭. Vibe check: slay responsibly and go set those options πŸŽ€

πŸ“¦ where this page comes from