1Mojolicious::Plugin::CHUIs:e:rchCio(n3t)ributed Perl DocMuomjeonltiactiioouns::Plugin::CHI::chi(3)
2
3
4

NAME

6       Mojolicious::Plugin::CHI::chi - Interact with CHI caches
7

SYNOPSIS

9         usage: perl app.pl chi <command> [cache] [key]
10
11           perl app.pl chi list
12           perl app.pl chi purge
13           perl app.pl chi clear mycache
14           perl app.pl chi expire mykey
15           perl app.pl chi remove mycache mykey
16
17         Interact with CHI caches associated with your application.
18         Valid commands include:
19
20           list
21             List all chi caches associated with your application.
22
23           purge [cache]
24             Remove all expired entries from the cache namespace.
25
26           clear [cache]
27             Remove all entries from the cache namespace.
28
29           expire [cache] [key]
30             Set the expiration date of a key to the past.
31             This does not necessarily delete the data.
32
33           remove [cache] [key]
34             Remove a key from the cache
35
36         "purge" and "expire" expect a cache namespace as their only argument.
37         If no cache namespace is given, the default cache namespace is assumed.
38
39         "expire" and "remove" expect a cache namespace and a key name as their
40         arguments. If no cache namespace is given, the default cache
41         namespace is assumed.
42

DESCRIPTION

44       Mojolicious::Plugin::CHI::chi helps you to interact with caches
45       associated with Mojolicious::Plugin::CHI.
46

ATTRIBUTES

48       Mojolicious::Plugin::CHI::chi inherits all attributes from
49       Mojolicious::Command and implements the following new ones.
50
51   description
52         my $description = $chi->description;
53         $chi = $chi->description('Foo!');
54
55       Short description of this command, used for the command list.
56
57   usage
58         my $usage = $chi->usage;
59         $chi = $chi->usage('Foo!');
60
61       Usage information for this command, used for the help screen.
62

METHODS

64       Mojolicious::Plugin::CHI::chi inherits all methods from
65       Mojolicious::Command and implements the following new ones.
66
67   run
68         $chi->run;
69
70       Run this command.
71

DEPENDENCIES

73       Mojolicious, CHI.
74

AVAILABILITY

76         https://github.com/Akron/Mojolicious-Plugin-CHI
77
79       Copyright (C) 2013-2016, Nils Diewald.
80
81       This program is free software, you can redistribute it and/or modify it
82       under the terms of the Artistic License version 2.0.
83
84       The documentation is based on Mojolicious::Command::eval, written by
85       Sebastian Riedel.
86
87
88
89perl v5.32.1                      2021-01-27  Mojolicious::Plugin::CHI::chi(3)
Impressum