Dancer...cached(3pm)

πŸ“¦
version 0.2020 Β· 2 versions
  • 0.2020 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.2020 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Dancer::Session::Memcached πŸ’–

okay bestie, so this is Dancer::Session::Memcached, a little gem from the User Contributed Perl Documentation corner of the world 🫢 and it's giving "my sessions live in memcached now" energy. It's version 0.202, and yes we're obsessed.


✨ NAME ✨

Dancer::Session::Memcached β€” it's the Memcached-based session backend for Dancer, periodt. That's the whole job description. πŸ‘‘


🌸 VERSION 🌸

version 0.202 β€” locked in, no cap πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this module implements a session engine that's built on the Memcache API. Your sessions? They get stored as memcache objects, and they live across a whole list of Memcached servers like the little social butterflies they are 🐝✨


πŸŽ€ CONFIGURATION πŸŽ€

To make your Dancer app actually use this session engine, you gotta set the setting session to "memcached". Non-negotiable, that's the vibe check βœ…

And there's a mandatory setting too, bestie β€” don't forget it or it's not gonna slay:

  • memcached_servers β€” this one holds a comma-separated list of reachable memcached servers. Each one can be either an address:port or a socket. Your call, your kingdom πŸ‘‘

Here's an example config that uses this session engine, look at her:

session: "memcached"
memcached_servers: "10.0.1.31:11211,10.0.1.32:11211,10.0.1.33:11211,/var/sock/memcached"

See how it's just vibing with three IPs and a socket? Iconic. 🌈


πŸ’œ DEPENDENCY πŸ’œ

This module depends on Cache::Memcached. That's the bestie it can't function without, fr fr πŸ«‚


⭐ SEE ALSO ⭐

Go check out Dancer::Session for all the details about how session usage works in your route handlers. That's where the lore lives πŸ“–βœ¨


πŸ‘‘ AUTHOR πŸ‘‘

Alexis Sukrieh <surkia@sukria.net> β€” the main character who made this happen πŸ’«


This software is copyright (c) 2011 by Alexis Sukrieh.

It's free software, bestie β€” you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Go off πŸ’…


and that's the whole page, babe πŸŽ€ written by the Perl docs girlies, running on perl v5.34.0, dated 2022-06-12. mwah, see you in the group chat πŸ’–

πŸ“¦ where this page comes from