Apache...cached(3pm)

πŸ’– Apache::Session::Memcached πŸ’–

okay bestie, listen. this is the page for Apache::Session::Memcached, and it's living under the User Contributed Perl Documentation umbrella, section 3pm. yes it's a Perl module page. yes it's giving very "written in 2004" energy. and yes, we're gonna make it make sense. 🫢


✨ NAME ✨

Apache::Session::Memcached β€” stores persistent data using memcached (the memory cache daemon) as your Apache::Session storage backend. periodt.


✨ SYNOPSIS ✨

here's the vibe, literally copy-paste core:

use Apache::Session::Memcached;
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
};

like… look at her. tying a hash to a memcached-backed session. iconic. πŸ‘‘


✨ DESCRIPTION ✨

so Apache::Session::Memcached is the bridge between Apache::Session and memcached, which is a distributed memory cache daemon. two icons, one collab. 🀝

if you want more tea about memcached itself, the info lives at <http://www.danga.com/memcached>.

what this module actually does: it gives you a way to use Cache::Memcached (that's the memcached Perl API, iykyk) as your Apache::Session storage implementation. that's it. that's the whole job. and she does it. πŸ’…


✨ INSTALLATION ✨

to install and use this package you're gonna need Perl version 5.005 or better. no ancient Perl, bestie, we're not doing that.

prerequisites πŸŽ€

  • Apache::Session >= 1.54
  • Cache::Memcached >= 1.14

installation, as usual πŸ¦‹

%> perl Makefile.PL
%> make
%> make test
%> make install
⚠️ note, and this one's important: for live tests, you must run at least a memcached daemon. also you could need to edit the t/CONFIG file, in order to set the correct parameters used for testing. don't skip this and then act surprised, ok? 😭

✨ SEE ALSO ✨

go read these too, they're all in the family:

  • Apache::Session::Store::Memcached
  • Apache::Session
  • Apache::Session::Flex
  • Cache::Memcached
  • memcached

✨ AUTHOR ✨

Enrico Sorcinelli <enrico at sorcinelli> β€” ty bestie for your service 🫢


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.


and that's the whole page, no cap. this one was rendered by perl v5.30.3 and dated 2020-09-06, and the manual title is Apache...cached(3pm). slay, go tie some sessions πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from