Cataly...legate(3pm)

πŸ“¦
version 0.14 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Cataly...legate(3pm) πŸ’–

ok so this is a page from the User Contributed Perl Documentation corner of the manual-verse, and yes the title is literally abbreviated like that because Catalyst::Plugin::Session::Store::DBIC::Delegate is a whole mouthful and the man page header simply gave up. bestie, same.


✨ NAME ✨

Catalyst::Plugin::Session::Store::DBIC::Delegate β€” delegates between the session and flash rows πŸŽ€


🌸 DESCRIPTION 🌸

okay so picture this: for any given session, there are two rows chillin' in your sessions table β€” one is the session row and one is the flash row. This class is the little go-between that delegates between those two rows. Not me being the middleman πŸ’….

And why, you ask? For compatibility with Catalyst::Plugin::Session::Store::DBI. That's the whole reason. It's giving "we did this for the ancestors." 🫢


πŸ¦‹ METHODS πŸ¦‹

πŸŽ€ session

Return the session row for this delegate. that's it, that's the method.

πŸŽ€ flash

Return the flash row for this delegate. queen of knowing which row is which.

πŸŽ€ _load_row

Load the specified session or flash row from the database. It's a lil wrapper around "find_or_create" in DBIx::Class::ResultSet, and the whole point of the wrapper is to add support for transactions. very "I'm just here to enable transactional behaviour" of it ✨.

πŸŽ€ expires

Return the expires row for this delegate. And here's the tea: just like with Catalyst::Plugin::Session::Store::DBI, this maps to the "session" row. no separate expires row, it's the session row wearing a different hat πŸ™ˆ.

πŸŽ€ flush

Update the session and flash data in the backend store. go off, persistence πŸ’….

πŸŽ€ _clear_instance_data

Remove any references held by the delegate. letting go is self care 🧚.


πŸ’œ AUTHOR πŸ’œ

Daniel Westermann-Clark <danieltwc@cpan.org> πŸ‘‘


Copyright 2006-2008 Daniel Westermann-Clark, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. open source icon behaviour, no cap 🌈


and that's the whole page, bestie! πŸŽ€ sign-off time: this beauty comes from perl v5.34.0 and it was dated 2022-06-09, and the header/footer kept saying Cataly...legate(3pm) because apparently even the man page format wasn't ready for that full name. periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from