Data::...:UUID34(3pm)

πŸ’– Data::...:UUID34 πŸ’–

okay so bestie, welcome to the manual page for Data::...:UUID34 β€” that's the one from User Contributed Perl Documentation, and yes the name has a whole bunch of dots in it, we don't question it, we respect it πŸ’…


✨ NAME ✨

Data::Session::ID::UUID34 β€” a persistent session manager 🫢


🌸 Synopsis 🌸

ngl there's not much here, just:

See Data::Session for details.

πŸ¦‹ Description πŸ¦‹

Data::Session::ID::UUID34 lets Data::Session generate session ids, and it does that using Data::UUID. iconic behaviour fr fr ✨

To use this module, here's the vibe:

  • Specify an id generator of type UUID34, like so: Data::Session -> new(type => '... id:UUID34 ...') πŸ‘‘

πŸŽ€ Case-sensitive Options πŸŽ€

go read "Case-sensitive Options" in Data::Session for the important tea, bestie. it matters πŸ’–


⭐ Method: new() ⭐

Creates a brand new object of type Data::Session::ID::UUID34. main character entrance, honestly 🌈

new() takes a hash of key/value pairs, and some of them might be mandatory. also, some combinations might be mandatory. no cap πŸ‘€

The keys are listed here in alphabetical order. πŸ“š

They're lower-case because they are (also) method names β€” which means you can call them to set or get the value whenever you want. so convenient πŸ’…

  • verbose => $integer β€” prints more or less information to STDERR. typical values are 0, 1 and 2. this key is normally passed in as Data::Session -> new(verbose => $integer). it's optional 🫢

πŸ”₯ Method: generate() πŸ”₯

Generates the next session id... or dies if it can't 😭 (dramatic but true, that's literally what it does).

The algorithm is Data::UUID -> new -> create_hex. slay.

Returns the new id. ✨

⚠️ Note: Data::UUID returns '0x' as the prefix of the 34-byte hex digest. you have been warned πŸ’€

🌸 Method: id_length() 🌸

Returns 34 because that's the number of bytes in a UUID34 digest. the way it just knows its own length, we love a self-aware icon πŸ‘‘

You can use this to generate the SQL that creates the sessions table. πŸ› οΈ

See scripts/digest.pl. πŸ“


πŸ’œ Support πŸ’œ

Log a bug on RT, bestie:

https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Session


πŸ‘‘ Author πŸ‘‘

Data::Session was written by Ron Savage <ron@savage.net.au> in 2010. πŸŽ€

Home page: http://savage.net.au/index.html.


Australian copyright (c) 2010, Ron Savage. πŸ‡¦πŸ‡Ί

All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html

and that's the whole page, bestie 🫢 this was perl v5.36.0, dated 2023-02-14 β€” go forth and generate them UUIDs, ily πŸ’–βœ¨

πŸ“¦ where this page comes from