Apache...ongoDB(3pm)

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

πŸ’– Apache::Session::MongoDB πŸ’–

okay so bestie, gather round 🫢 this is Apache::Session::MongoDB β€” a User Contributed Perl Documentation page, no cap. It's an implementation of Apache::Session, which is the thing that handles your session data for you. Think of it as the group chat that never forgets what you said last periodt πŸ’…


✨ NAME ✨

Apache::Session::MongoDB β€” literally an implementation of Apache::Session. That's the whole job. She's got one role and she's serving it. πŸ‘‘


✨ SYNOPSIS ✨

here's how you pull up, bestie:

use Apache::Session::MongoDB;

# 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',
};

so you use the module, you tie a hash with your $id and a config hash, and boom β€” sessions. The second example shows what the defaults look like all laid out. πŸ’–

ngl that first example with {} is the "just let her cook" option β€” everything defaults, no notes.

✨ DESCRIPTION ✨

This module is an implementation of Apache::Session. It uses the MongoDB backing store and no locking. That's it, that's the vibe. 🌸

highkey important: no locking means she's not gonna babysit concurrent access for you β€” that's just how she is. iykyk πŸ¦‹


✨ PARAMETERS ✨

You can set the following parameters, and you've got a whole lil roster to choose from:

  • host
  • db_name
  • collection
  • auth_mechanism
  • auth_mechanism_properties
  • connect_timeout_ms
  • ssl
  • username
  • password

See MongoDB for more πŸ‘€ β€” she's not gonna explain every single one here, the MongoDB docs are the main character for that part.

not me telling you to go read another manpage but like... go read the other manpage bestie πŸ’€

✨ SEE ALSO ✨

  • MongoDB
  • Apache::Session

✨ AUTHOR ✨

Xavier Guimard, <x.guimard@free.fr> β€” legend behavior fr fr πŸ‘‘πŸ’œ


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 basically: free software, same terms as Perl, 5.10.0 or whatever newer 5 you've got. slay πŸ’…


aaaand that's the whole page, bestie πŸŽ€ this was perl v5.36.0, dated 2022-08-28, and the source files it lives in are the User Contributed Perl Documentation β€” mwah, go tie some hashes, ily 🫢✨

πŸ“¦ where this page comes from