Apache...MongoDB(3pm)

πŸ“¦
version 0.23 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Apache::Session::MongoDB β€” the manual page, but make it make sense πŸ’–

okay bestie, gather round, because this is Apache...MongoDB(3pm), a User Contributed Perl Documentation page, and it's lowkey iconic. It's a Perl module, it does one thing, and it does it with MongoDB energy. Let's get into it. πŸ¦‹


✨ NAME ✨

Apache::Session::MongoDB β€” an implementation of Apache::Session. That's it, that's the whole name section, she's simple and she's serving. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's how you actually use her, fr fr:

use Apache::Session::MondoDB;

# Using localhost server
tie %hash, 'Apache::Session::MongoDB', $id, {};

# Example with default values
tie %hash, 'Apache::Session::MongoDB', $id, {
   host       => 'locahost:27017',
   db_name    => 'sessions',
   collection => 'sessions',
};
⚠️ bestie, listen. The use line literally says Apache::Session::MondoDB and the host literally says locahost:27017. Those are exactly how they appear in the original, typos and all, so I'm keeping them verbatim β€” copy-paste at your own risk, no cap. πŸ™ˆ

The first tie is the chill version: just point her at your localhost server and let the defaults do their thing. The second one shows you what those defaults actually are β€” host is locahost:27017, db_name is sessions, and collection is sessions. Main character defaults, honestly. πŸ‘‘


🌸 DESCRIPTION 🌸

So what is this? It's an implementation of Apache::Session, periodt. Not a vibe, not a theory β€” an actual implementation.

The way it works: it uses the MongoDB backing store, and it does no locking. That's the whole personality. No locking means she's fast and free, but also like… she is not holding the door for anybody. Keep that in mind, iykyk. πŸ”₯


🌈 SEE ALSO 🌈

  • Apache::Session::MongoDB
  • Apache::Session

Go read those too, bestie, they're the extended universe. πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

Xavier Guimard, <x.guimard@free.fr>. We stan. 🫢


Copyright (C) 2015-2016 by Xavier Guimard, <x.guimard@free.fr>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

So like β€” free software, same terms as Perl itself, Perl 5.10.0 or anything newer you've got lying around. Slay. ✨


and that's the whole page, bestie!! this one came from perl v5.36.0, dated 2022-08-28, and it's filed under the lovingly chaotic manual name Apache...MongoDB(3pm). mwah, go tie some hashes πŸ’‹πŸŽ€

πŸ“¦ where this page comes from