line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Renderer::WithoutCache::Cache; |
2
|
3
|
|
|
3
|
|
13260
|
use Mojo::Base -base; |
|
3
|
|
|
|
|
6600
|
|
|
3
|
|
|
|
|
17
|
|
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.04 |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
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
|
2394
|
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
|
2
|
|
|
2
|
1
|
7
|
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 |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Copyright (C) simbabque. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
69
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
1; |