CHI::CacheObject(3pm)
π CHI::CacheObject π
okay bestie so this is CHI::CacheObject, a little Perl module (a 3pm page, iykyk) that holds info about cache entries β¨. We're on version 0.61, and she's cute, she's read-only, she's giving β¨receipts about your cacheβ¨.
πΈ SYNOPSIS πΈ
like, here's the vibe:
my $object = $cache->get_object($key);
my $key = $object->key();
my $value = $object->value();
my $expires_at = $object->expires_at();
my $created_at = $object->created_at();
if ($object->is_expired()) { ... }
look at her go π«Ά
π¦ DESCRIPTION π¦
so the CHI method returns this object if the key exists, periodt. and here's the iconic part: the object will be returned even if the entry has expired, as long as it has not been removed. expired but still in the building?? yes ma'am π
also, heads up: there is currently no public API for creating one of these objects directly. you don't make her, she just shows up. main character energy fr fr π
π METHODS π
all methods are read-only β no touching, only looking bestie π. and the get_* methods? they're there for backward compatibility with Cache::Cache's Cache::Object. nostalgia core π
keyβ the key. that's it, that's the whole thing πvalueβ the value. iconic, no notes β¨expires_at,get_expires_atβ epoch time at which the item expires β° bye babecreated_at,get_created_atβ epoch time at which the item was last written to π the birthday, basicallyis_expiredβ returns a boolean indicating whether the item has expired πΈ. ngl this may be probabilistically determined if anexpires_variancewas used β so like, she's guessing a lil bit, and that's valid π
π₯ SEE ALSO π₯
- CHI β the mothership, go look π«Ά
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> β king behavior π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2021 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. slay, legally speaking β
and that's the whole page bestie!! π this was perl v5.32.1, dated 2021-10-15, and you just read CHI::CacheObject(3pm) in full. no skips, no cap, we read every line πβ¨π¦πΈπ π«Ά
π¦ where this page comes from
- debian bookworm: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms