Email:...:Cached(3pm)

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

✨ NAME ✨

Email::MIME::CreateHTML::Resolver::Cached β€” bestie, it literally just wraps caching around a resource resolver πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

my $o = new Email::MIME::CreateHTML::Resolver::Cached(\%args)
my ($content,$filename,$mimetype,$xfer_encoding) = $o->get_resource($uri)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this little icon is used by Email::MIME::CreateHTML to load resources. that's it, that's the job. it does the loading, and it does it with caching energy ✨


🌸 METHODS 🌸

  • $o = new Email::MIME::CreateHTML::Resolver::Cached(\%args)

%args can contain:

  • base β€” the base URI used to resolve URIs that get passed to get_resource.
  • object_cache β€” mandatory, no skipping it. a cache object goes here.
  • resolver β€” mandatory too, bestie. another resolver, the one you want the caching applied to.
  • ($content,$filename,$mimetype,$xfer_encoding) = $o->get_resource($uri)

yeah. that's the call. four things come back out: content, filename, mimetype, and the transfer encoding. iconic return signature tbh 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Tony Hennessy, Simon Flack and John Alden, with additional contributions by Ricardo Signes <rjbs@cpan.org> and Henry Van Styn <vanstyn@cpan.org> πŸ’–


(c) BBC 2005,2006. This program is free software; you can redistribute it and/or modify it under the GNU GPL.

See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt


and that's a wrap, bestie πŸŽ€ this was Email:...:Cached(3pm) from the User Contributed Perl Documentation, living its best life on perl v5.36.0, dated 2022-12-06. no cap, go read the source, it slays πŸ’…βœ¨