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 toSTDERR. typical values are0,1and2. this key is normally passed in asData::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::UUIDreturns'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.
π Copyright π
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
- debian trixie: libdata-session-perl 1.18-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdata-session-perl 1.18-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdata-session-perl 1.18-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-session-perl 1.18-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms