DBIx::C...torable(3)

✨ NAME ✨

okay bestie, this page is DBIx::Class::Serialize::Storable(3) from User Contributed Perl Documentation, and the official NAME line is literally: DBIx::Class::Serialize::Storable β€” hooks for Storable nfreeze/thaw πŸ’…


🚨 DEPRECATION NOTE 🚨

bestie, this component is now DEPRECATED. 🫢 It has not been providing any useful functionality for quite a while, and in fact destroys prefetched results in its current implementation. Do not use!

no cap, do not use this one πŸ˜­πŸ’€

🧚 SYNOPSIS 🧚

# in a table class definition
__PACKAGE__->load_components(qw/Serialize::Storable/);

# meanwhile, in a nearby piece of code
my $cd = $schema->resultset('CD')->find(12);
# if the cache uses Storable, this will work automatically
$cache->set($cd->ID, $cd);

πŸ’– DESCRIPTION πŸ’–

This component adds hooks for Storable so that result objects can be serialized. It assumes that your result object class (result_class) is the same as your table class, which is the normal situation. slay, that's the whole vibe ✨


πŸͺ HOOKS πŸͺ

The following hooks are defined for Storable β€” see the documentation for "Hooks" in Storable for detailed information on these hooks. iykyk 🧚

🧊 STORABLE_freeze 🧊

The serializing hook, called on the object during serialization. It can be inherited, or defined in the class itself, like any other method.

πŸ”₯ STORABLE_thaw πŸ”₯

The deserializing hook called on the object during deserialization.


❓ FURTHER QUESTIONS? ❓

Check the list of additional DBIC resources. 🫢


This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library. periodt πŸ’œ


and that's the page, bestie πŸŽ€ β€” this footer energy comes from perl v5.42.0, dated 2025-01-22, with the manual name showing up as DBIx::C...torable(3) πŸŒˆπŸ’…

πŸ“¦ where this page comes from