Text::...e::Null(3pm)

πŸ“¦
version 2.23 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Text::MicroMason::Cache::Null β€” it's giving Trivial Cache with No Data Storage πŸ’… like bestie really said "cache" and then stored absolutely nothing. iconic behavior honestly.


🌸 DESCRIPTION 🌸

okay so picture a cache. now picture a cache that has fully dissociated. that's this one 🫢

This trivial cache class supports the cache interface but doesn't store or retrieve any values. It's the vibe of showing up to the group chat and saying nothing. The interface is satisfied, the data is not. no cap.

πŸŽ€ Public Methods πŸŽ€

  • new()
$cache = Text::MicroMason::Cache::Null->new();
  • get()
undef = $cache->get( $key );

Does nothing. Literally nothing. It's the void and the void is slaying ✨

  • set()
$cache->set( $key, $value );

Returns the provided value. that's it, that's the whole trick πŸ’–

  • clear()
$cache->clear();

Does nothing. again. consistency queen πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

For uses of this cache class, see Text::MicroMason::ExecuteCache.

Additional cache classes are available in the Text::MicroMason::Cache:: namespace, or select other caching modules on CPAN that support the interface described in Cache::Cache.

For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.


mwah πŸ’‹ this page is from User Contributed Perl Documentation β€” and it shipped with perl v5.36.0 on 2023-08-10. go forth and cache nothing, bestie πŸŒˆπŸ‘‘πŸ’œ

πŸ“¦ where this page comes from