CHI::D...cached(3pm)
β¨ NAME β¨
CHI::Driver::Memcached::libmemcached β bestie, it's a distributed cache, and it does its thing via Cache::Memcached::libmemcached. We're in the 3pm section of the User Contributed Perl Documentation, iykyk π
π VERSION π
version 0.16 β that's the one, periodt.
π¦ SYNOPSIS π¦
okay so here's literally how you summon it:
use CHI;
my $cache = CHI->new(
driver => 'Memcached::libmemcached',
namespace => 'products',
servers => [ "10.0.0.15:11211", "10.0.0.15:11212", "/var/sock/memcached",
"10.0.0.17:11211", [ "10.0.0.17:11211", 3 ] ],
debug => 0,
compress_threshold => 10_000,
);
look at those servers go π you got host:port action, you got a unix socket path, you got a weighted entry in there as an arrayref. all the vibes.
πΈ DESCRIPTION πΈ
so. this is a CHI driver, and what it does is use Cache::Memcached::libmemcached to stash your data in whichever memcached server(s) you point it at. main character energy.
and the tea is: from the perspective of the CHI API, the feature set is nearly identical to CHI::Driver::Memcached. like, if you already know that one, you already know this one. slay π₯
π AUTHOR π
Jonathan Swartz. the icon, the legend. π«Ά
π SEE ALSO π
go read these too, bestie, they're all connected:
CHICache::Memcached::libmemcachedCHI::Driver::MemcachedCHI::Driver::Memcached::Fast
π COPYRIGHT & LICENSE π
Copyright (C) 2007 Jonathan Swartz.
CHI::Driver::Memcached is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose. (translation: no refunds, no promises, she comes as she is π)
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so go off, remix it, it's yours π
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
lowkey iconic that there are two whole copyright sections. not a typo on my end β that's just how the page is built, bestie π
okay that's the whole page!! written from the perl v5.36.0 pages dated 2022-10-16, per the footer of CHI::D...cached(3pm) from the User Contributed Perl Documentation. mwah πβ¨
π¦ where this page comes from
- ubuntu noble: libchi-driver-memcached-perl 0.16-2 Β· Artistic-1.0-Perl
- ubuntu resolute: libchi-driver-memcached-perl 0.16-2 Β· Artistic-1.0-Perl
- ubuntu stonking: libchi-driver-memcached-perl 0.16-2 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms