Apache...mcached(3pm)
π NAME π
Apache::Session::Store::Memcached β bestie, it stores ur persistent data using memcached (the memory cache daemon) so that Apache::Session storage can do its lil thing β¨
πΈ SYNOPSIS πΈ
okay so here's the vibe, literally copy-paste this:
tie %session, 'Apache::Session::Memcached', $sid, {
Servers => '10.0.0.1:20000 10.0.0.2:20000',
NoRehash => 1,
Readonly => 0,
Debug => 1,
CompressThreshold => 10_000
};
# use with another locking/generation/serializaion scheme
use Apache::Session::Flex;
tie %session, 'Apache::Session::Flex', $id, {
Store => 'Memcached',
Lock => 'Null',
Generate => 'MD5',
Serialize => 'Storable',
Servers => '10.0.0.1:20000 10.0.0.2:20000',
};
likeβ¦ u can also pair it with a whole other locking/generation/serialization situation if that's more ur energy π¦
β¨ DESCRIPTION β¨
Apache::Session::Store::Memcached implements the storage interface for Apache::Session, using Cache::Memcached as the frontend to memcached. it's giving "middleware but make it cute" fr fr π
π CONFIGURATIONS π
so this module wants to know the standard options for Cache::Memcached. u can pass those options straight through as Apache::Session's tie options, like this:
tie %session, 'Apache::Session::Memcached', $sid, {
Servers => '10.0.0.1:20000 10.0.0.2:20000',
Debug => 1
};
heads up bestie: the spelling of the options here is slightly different from the ones in Cache::Memcached. not a typo, that's just how it is π
the options 'Servers', 'NoRehash', 'Readonly', 'Debug' and 'CompressThreshold' correspond to the Cache::Memcached parameters 'servers', 'no_rehash', 'readonly', 'debug' and 'compress_threshold'. π«Ά
and lowkey extra: 'Server' can be either a scalar shaped like 'IP:port IP:port ...', or an arrayref of hosts (as required by Cache::Memcached). main character energy, it does both π
go read Cache::Memcached for the details, iykyk π
π SEE ALSO π
- Apache::Session
- Apache::Session::Flex
- Cache::Memcached
- memcached
π AUTHOR π
Enrico Sorcinelli <enrico at sorcinelli>
π COPYRIGHT AND LICENSE π
Copyright (C) 2004 by Enrico Sorcinelli
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.
okay that's the whole thing bestie, no notes π this was perl v5.30.3, dated 2020-09-06, straight outta the Apache...mcached(3pm) user contributed perl documentation πΈ slay, go tie some sessions π
π¦ where this page comes from
- debian bookworm: libapache-session-memcached-perl 0.03-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libapache-session-memcached-perl 0.03-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libapache-session-memcached-perl 0.03-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libapache-session-memcached-perl 0.03-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapache-session-memcached-perl 0.03-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapache-session-memcached-perl 0.03-3 Β· 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