Lock/MariaDB.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« MariaDB.pm ↑ Summary
1 package Apache::Session::Lock::MariaDB;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use base 'Apache::Session::Lock::MySQL';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 1;
9  
10 =pod
11  
12 =head1 NAME
13  
14 Apache::Session::Lock::MariaDB - Provides mutual exclusion using MariaDB
15  
16 =head1 SYNOPSIS
17  
18 use Apache::Session::Lock::MariaDB;
19  
20 my $locker = Apache::Session::Lock::MariaDB->new();
21  
22 $locker->acquire_read_lock($ref);
23 $locker->acquire_write_lock($ref);
24 $locker->release_read_lock($ref);
25 $locker->release_write_lock($ref);
26 $locker->release_all_locks($ref);
27  
28 =head1 DESCRIPTION
29  
30 This is based on L<Apache::Session::Lock::MySQL> but for
31 L<Apache::Session::MariaDB>.
32  
33 =head1 AUTHOR
34  
35 Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
36  
37 =head1 SEE ALSO
38  
39 L<Apache::Session::Lock::MySQL>, L<Apache::Session>
« MariaDB.pm ↑ Summary