CGI::S...mcached(3pm)

πŸ’– CGI::S...mcached(3pm) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation for CGI::S...mcached(3pm) β€” yes the title is literally abbreviated like that, it's giving mysterious, it's giving main character. let's get into it ✨


✨ NAME ✨

CGI::Session::Driver::memcached β€” it's the CGI::Session driver for memcached, no cap. 🧚


🌸 SYNOPSIS 🌸

here's the whole vibe, copied exactly, don't touch a character:

use strict;
use warnings;
use Cache::Memcached; # or Cache::Memcached::Fast

my $memcached = Cache::Memcached->new({
    servers => [ 'localhost:11211' ],
    debug   => 0,
    compress_threshold => 10_000,
});
my $session = CGI::Session->new( "driver:memcached", $sid, { Memcached => $memcached } );

look at that. Cache::Memcached or Cache::Memcached::Fast, either one, pick your fighter πŸ’… and then boom, $sid, boom, driver memcached, boom, session. iconic.


πŸ¦‹ DESCRIPTION πŸ¦‹

memcached stores session data into memcached.</purgle>

like... yes. that's the whole thing. the driver takes your session data and puts it in memcached. it's literally in the name, iykyk. short and slay. πŸ”₯


πŸŽ€ DRIVER ARGUMENTS πŸŽ€

the only supported driver argument is 'Memcached'. that's it. one (1) argument. and it's an instance of Cache::Memcached.

so when you pass it in, that hashref key better be Memcached with a real Cache::Memcached object in it. not vibes. an object. periodt. πŸ‘‘


⭐ REQUIREMENTS ⭐

you're gonna need these two besties in your life:

  • CGI::Session
  • Cache::Memcached or Cache::Memcached::Fast

that's the guest list. no plus-ones. 🌈


πŸ’€ TODO πŸ’€

not me reading the TODO section andβ€”

Implement traverse method! But I don't know how to get all objects store in memcached.

literally the most honest thing ever written in a manpage. the traverse method? not implemented. the author does not know how to get all objects stored in memcached. and honestly? relatable. 😭 we respect the transparency fr fr.


🫢 AUTHOR 🫢

Kazuhiro Oinuma <oinume@cpan.org> β€” the legend, the icon, the moment. πŸ’–


🧚 REPOSITORY 🧚

go clone it, bestie:

git clone git://github.com/oinume/p5-cgi-session-driver-memcached

clone it exactly like that. don't remix it. πŸ™ˆ


Copyright (C) 2005 - 2009 Kazuhiro Oinuma <oinume@cpan.org>. All rights reserved.

This library is free software. You can modify and or distribute it under the same terms as Perl itself.

so like, free software, same terms as Perl itself, modify it, distribute it, live your truth, just keep the copyright intact okay? πŸ’…


and that's the whole page!! no missing sections, no skipped options, we kept every last detail because that's the rule πŸ’–

sign-off: this was perl v5.32.0, dated 2021-01-03, and the page is CGI::S...mcached(3pm) β€” love you, bye, go store some sessions in memcached πŸŽ€βœ¨

πŸ“¦ where this page comes from