gnutls_db_set_cache_expiration(3)

πŸ’– gnutls_db_set_cache_expiration(3) πŸ’–

okay bestie, sit down, we're reading a gnutls manpage together and honestly? this one's short and sweet, we love a low-commitment queen. the manual name is gnutls, and this lil function is gnutls_db_set_cache_expiration. let's get into it ✨


✨ NAME ✨

gnutls_db_set_cache_expiration β€” it's an API function, bestie πŸŽ€


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

void gnutls_db_set_cache_expiration(gnutls_session_t session, int
seconds);

look at her. returns void. she gives nothing back and she's not sorry πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_session_t session β€” this is a gnutls_session_t type. that's the whole description, she's mysterious like that πŸ™ˆ
  • int seconds β€” the number of seconds. yeah. it's seconds. we love a self-explanatory name fr fr

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does this actually DO? it sets the expiration time for resumed sessions. that's it, that's the job ✨

the default is 21600 seconds β€” that's 6 hours β€” at the time of writing. yes, "at the time of writing," they're keeping it humble, iconic honestly.

and the maximum value you can set with this function is 604800 seconds, which is 7 days. so don't come in here trying to set it to a whole month, she will NOT allow it, no cap πŸ’€

fr fr: 21600 default, 604800 max. write that down bestie πŸ“

😭 REPORTING BUGS 😭

found a bug? report it to <bugs@gnutls.org> β€” they want to hear from you, go off 🫢

home page: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. so like, go ahead, spread the word, just keep the receipts πŸ’–


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:

https://www.gnutls.org/manual/

go read it, i'll wait, i'm obsessed with a girl who reads docs 🧚


and that's the whole page bestie!! this was gnutls version 3.8.13, the gnutls_db_set_cache_expiration(3) page, and yeah the footer date situation is what it is β€” we ran with what we had πŸ’…βœ¨ mwah, go expire some sessions responsibly πŸ‘‘πŸ’–

πŸ“¦ where this page comes from