line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Renderer::WithoutCache::Cache; |
2
|
3
|
|
|
3
|
|
13261
|
use Mojo::Base -base; |
|
3
|
|
|
|
|
6783
|
|
|
3
|
|
|
|
|
15
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Mojolicious::Plugin::Renderer::WithoutCache::Cache - Mojo::Cache that doesn't cache |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Version 0.01 |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
15
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 SYNOPSIS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
You probably don't want to use this directly. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my $cache = Mojolicious::Plugin::Renderer::WithoutCache::Cache->new; |
22
|
|
|
|
|
|
|
# this cache does nothing |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
A cache object that's compatible to Mojo::Cache but does nothing. It does |
27
|
|
|
|
|
|
|
not save or return any values. It's always empty. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 METHODS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 get |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Does nothing. Returns C. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
52
|
1
|
|
sub get {} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 set |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Does nothing. Returns C<$self> so chaining is possible. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
44
|
|
|
|
|
|
|
|
45
|
51
|
|
|
51
|
1
|
1594
|
sub set { shift; } |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 max_keys |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Always returns zero. Can't be set. We don't want any keys. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
0
|
1
|
|
sub max_keys { 0 } |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
simbabque, C<< >> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 BUGS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Please report any bugs or feature requests through an issue |
62
|
|
|
|
|
|
|
on github at L. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Copyright 2017 simbabque. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
69
|
|
|
|
|
|
|
under the terms of the the Artistic License (2.0). You may obtain a |
70
|
|
|
|
|
|
|
copy of the full license at: |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified |
75
|
|
|
|
|
|
|
Versions is governed by this Artistic License. By using, modifying or |
76
|
|
|
|
|
|
|
distributing the Package, you accept this license. Do not use, modify, |
77
|
|
|
|
|
|
|
or distribute the Package, if you do not accept this license. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made |
80
|
|
|
|
|
|
|
by someone other than you, you are nevertheless required to ensure that |
81
|
|
|
|
|
|
|
your Modified Version complies with the requirements of this license. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service |
84
|
|
|
|
|
|
|
mark, tradename, or logo of the Copyright Holder. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge |
87
|
|
|
|
|
|
|
patent license to make, have made, use, offer to sell, sell, import and |
88
|
|
|
|
|
|
|
otherwise transfer the Package with respect to any patent claims |
89
|
|
|
|
|
|
|
licensable by the Copyright Holder that are necessarily infringed by the |
90
|
|
|
|
|
|
|
Package. If you institute patent litigation (including a cross-claim or |
91
|
|
|
|
|
|
|
counterclaim) against any party alleging that the Package constitutes |
92
|
|
|
|
|
|
|
direct or contributory patent infringement, then this Artistic License |
93
|
|
|
|
|
|
|
to you shall terminate on the date that such litigation is filed. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER |
96
|
|
|
|
|
|
|
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. |
97
|
|
|
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
98
|
|
|
|
|
|
|
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY |
99
|
|
|
|
|
|
|
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR |
100
|
|
|
|
|
|
|
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR |
101
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, |
102
|
|
|
|
|
|
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=cut |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
1; # End of Mojolicious::Plugin::Renderer::WithoutCache::Cache |