line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CHI::Driver::Elasticache::Memcache; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
17203
|
use 5.008_005; |
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
10
|
use Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
9
|
|
7
|
1
|
|
|
1
|
|
11947
|
use Cache::Elasticache::Memcache; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
40
|
|
8
|
1
|
|
|
1
|
|
10
|
use strict; |
|
1
|
|
|
|
|
40
|
|
|
1
|
|
|
|
|
37
|
|
9
|
1
|
|
|
1
|
|
9
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
91
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'CHI::Driver::Memcached::Base'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has '+memd_class' => ( default => 'Cache::Elasticache::Memcache' ); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
9
|
no Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
__END__ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding utf-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
CHI::Driver::Elasticache::Memcache - This is a CHI Driver for AWS's Elasticache memcache implementation |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
use CHI; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my $cache = CHI->new( |
31
|
|
|
|
|
|
|
driver => 'Elasticache::Memcache', |
32
|
|
|
|
|
|
|
config_endpoint => 'foo.bar', |
33
|
|
|
|
|
|
|
update_period => 180, |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
CHI::Driver::Elasticache::Memcache is a driver for CHI that allows CHI to make use of AWS's Elasticache memcache. It will discover the memcache cluster geometry from the endpoint provided by AWS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SEE ALSO |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
L<CHI>, L<Cache::Elasticache::Memcache>, L<CHI::Driver::Memcached>, L<Cache::Memacached::Fast> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Aaron Moses E<lt>zebardy@cpan.orgE<gt> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 COPYRIGHT |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Copyright 2016- Aaron Moses |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
55
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 WARRANTY |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
There's B<NONE>, neither explicit nor implied. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=cut |