Mojolic...CHI::chi(3)
β¨ Mojolicious::Plugin::CHI::chi β¨
okay so bestie, this is a page from the User Contributed Perl Documentation section of the manual β it's the Mojolicious::Plugin::CHI::chi page (3), and it's literally all about poking at your CHI caches from the command line. π
πΈ NAME πΈ
Mojolicious::Plugin::CHI::chi β interact with CHI caches π«Ά
β¨ SYNOPSIS β¨
usage: perl app.pl chi <command> [cache] [key]
perl app.pl chi list
perl app.pl chi purge
perl app.pl chi clear mycache
perl app.pl chi expire mykey
perl app.pl chi remove mycache mykey
So basically: you hit up the CHI caches that are associated with your application, and here's the whole menu of valid commands, no gatekeeping:
listβ lists all the chi caches that are associated with your application. that's it. that's the whole vibe. πpurge [cache]β removes all the expired entries from the cache namespace. spring cleaning fr fr π§Ήclear [cache]β removes all entries from the cache namespace. not just the expired ones. everything. πexpire [cache] [key]β sets the expiration date of a key to the past. lowkey important note: this does not necessarily delete the data. it's giving "technically expired bestie" πremove [cache] [key]β removes a key from the cache. gone. periodt. π
Now the rules of engagement, bestie, listen closely:
purgeandexpireexpect a cache namespace as their only argument. if no cache namespace is given, the default cache namespace is assumed. πexpireandremoveexpect a cache namespace and a key name as their arguments. if no cache namespace is given, the default cache namespace is assumed. π
π¦ DESCRIPTION π¦
Mojolicious::Plugin::CHI::chi helps you interact with caches associated with Mojolicious::Plugin::CHI. that's the whole assignment and it ate. π₯
π ATTRIBUTES π
Mojolicious::Plugin::CHI::chi inherits all attributes from Mojolicious::Command and implements the following new ones. yes, all of them, we don't do partial inheritance here. π
description
my $description = $chi->description;
$chi = $chi->description('Foo!');
short description of this command, used for the command list. it's the lil one-liner that shows up in the lineup. β
usage
my $usage = $chi->usage;
$chi = $chi->usage('Foo!');
usage information for this command, used for the help screen. this is the one that shows up when someone's lost and needs a hand. π«Ά
π METHODS π
Mojolicious::Plugin::CHI::chi inherits all methods from Mojolicious::Command and implements the following new ones.
run
$chi->run;
run this command. go off, do the thing. π
π DEPENDENCIES π
Mojolicious, CHI. that's the whole squad. π
π AVAILABILITY π
https://github.com/Akron/Mojolicious-Plugin-CHI
go star it bestie, iykyk β¨
π COPYRIGHT AND LICENSE π
Copyright (C) 2013-2016, Nils Diewald.
this program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0. slay. π
the documentation is based on Mojolicious::Command::eval, written by Sebastian Riedel. credit where credit is due, always. π
and that's the whole page, bestie!! this one's running on perl v5.42.0, dated 2025-07-25, and it came to you straight from the Mojolic...CHI::chi(3) manual. now go clear a cache, you main character. π πΈβ¨
π¦ where this page comes from
- fedora 43: perl-Mojolicious-Plugin-CHI 0.20-21.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms