CHI::D...cached(3pm)

πŸ“¦
version 0.16 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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:

  • CHI
  • Cache::Memcached::libmemcached
  • CHI::Driver::Memcached
  • CHI::Driver::Memcached::Fast

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 πŸŽ€


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