Clacks.pm

filter: Statementstmt 100% 49 / 49 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 16 / 16 Podpod n/a totaltotal 100% 65 / 65 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Clacks/ClacksCache.pm ↑ Summary
1 package Net::Clacks;
2 #---AUTOPRAGMASTART---
3 1 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use diagnostics;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use English qw(-no_match_vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Carp qw[carp croak confess cluck longmess shortmess];
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 our $VERSION = 37;
10 1 ▶use autodie qw( close );
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Array::Contains;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Encode qw(is_utf8 encode_utf8 decode_utf8);
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use builtin qw[true false is_bool];
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶no warnings qw(experimental::builtin); ## no critic (TestingAndDebugging::ProhibitNoWarnings)
Subroutine BEGIN: called CC=1 SCAR=0.0
17 #---AUTOPRAGMAEND---
18  
19 1 ▶use Net::Clacks::Client;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use Net::Clacks::Server;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Net::Clacks::ClacksCache;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 1;
24  
25 =head1 NAME
26  
27 Net::Clacks - Fast client/server interprocess messaging and memcached replacement
28  
29 =head1 SYNOPSIS
30  
31 The Net::Clacks system implements a fast client/server based interprocess messaging. For
32 handling a high number of clients, you can run multiple servers in a master/slave configuration.
33 A slave can also run itself as master for it's own slaves, so a tree-like setup is possible.
34  
35 Net::Clacks requires Perl 5.36.0 or higher.
36  
37 =head1 DESCRIPTION
38  
39 The Net::Clacks system implements a fast client/server based interprocess messaging. For
40 handling a high number of clients, you can run multiple servers in a master/slave configuration.
41 A slave can also run itself as master for it's own slaves, so a tree-like setup is possible.
42  
43 Clacks has two ways to handle data. One is (near) real time messaging, the other is storing in
44 memory (as a replacement for memcached).
45  
46 Clacks has also a DEBUG feature that forwards all messages to a requesting client.
47  
48 The Net::Clacks system implements a fast client/server based interprocess messaging. For
49 handling a high number of clients, you can run multiple servers in a master/slave configuration.
50 A slave can also run itself as master for it's own slaves, so a tree-like setup is possible. This
51 is implemented by using Interclacks mode via OVERHEAD mode setting.
52  
53 =head1 MODULES
54  
55 The server is implemented in L<Net::Clacks::Server>.
56  
57 The client library in L<Net::Clacks::Client>.
58  
59 A more Cache::Memcached compatible client library (caching only, no real time communication) is implemented
60 in the L<Net::Clacks::ClacksCache> module.
61  
62 For those cases when you need to send a Clacks message from PostgreSQL, there is the "write-only" L<Net::Clacks::PostgreSQL2Clacks>.
63 This makes it relatively easy to generate messages from database triggers.
64  
65 Please also take a look at the examples, this implements a simple chat client.
66  
67  
68 =head1 IMPORTANT UPGRADE NOTES
69  
70 Please make sure to read L<Net::Clacks::UpgradeGuide> before upgrading to a new Net::Clacks version.
71  
72 =head1 AUTHOR
73  
74 Rene Schickbauer, E<lt>cavac@cpan.orgE<gt>
75  
76 =head1 Source code repository
77  
78 The official source code repository is located at:
79 L<https://cavac.at/public/mercurial/Net-Clacks/>
80  
81 =head1 COPYRIGHT AND LICENSE
82  
83 Copyright (C) 2008-2024 Rene Schickbauer
84  
85 This library is free software; you can redistribute it and/or modify
86 it under the same terms as Perl itself, either Perl version 5.10.0 or,
87 at your option, any later version of Perl 5 you may have available.
88  
89 =cut
90  
« Clacks/ClacksCache.pm ↑ Summary