line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Auth::Kokolores::ConnectionPool; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
2489
|
use strict; |
|
2
|
|
|
|
|
1
|
|
|
2
|
|
|
|
|
52
|
|
4
|
2
|
|
|
2
|
|
762
|
use MooseX::Singleton; |
|
2
|
|
|
|
|
44492
|
|
|
2
|
|
|
|
|
6
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: connection cache to hold connection handles |
7
|
|
|
|
|
|
|
our $VERSION = '1.01'; # VERSION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'handles' => ( |
10
|
|
|
|
|
|
|
is => 'ro', isa => 'HashRef', lazy => 1, |
11
|
|
|
|
|
|
|
default => sub { {} }, |
12
|
|
|
|
|
|
|
traits => [ 'Hash' ], |
13
|
|
|
|
|
|
|
handles => { |
14
|
|
|
|
|
|
|
'add_handle' => 'set', |
15
|
|
|
|
|
|
|
'get_handle' => 'get', |
16
|
|
|
|
|
|
|
'clear_handle' => 'delete', |
17
|
|
|
|
|
|
|
'reset' => 'clear', |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=pod |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding UTF-8 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Auth::Kokolores::ConnectionPool - connection cache to hold connection handles |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 VERSION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
version 1.01 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 AUTHOR |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Markus Benning <ich@markusbenning.de> |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This software is Copyright (c) 2016 by Markus Benning <ich@markusbenning.de>. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This is free software, licensed under: |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
The GNU General Public License, Version 2, June 1991 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |