Net::Op...ionCache(3)
okay so bestie, this manual page is filed as Net::Op...ionCache(3) under User Contributed Perl Documentation, and it's all about Net::OpenSSH::ConnectionCache β the connection-reuse icon π
β¨.
πΈ NAME πΈ
Net::OpenSSH::ConnectionCache β cache and reuse SSH connections transparently π¦
β¨ SYNOPSIS β¨
bestie, here's the whole vibe in code, no cap:
use Net::OpenSSH;
use Net::OpenSSH::ConnectionCache;
for (1..10) {
my $ssh = Net::OpenSSH->new($host);
$ssh->system("$cmd $_");
}
π DESCRIPTION π
okay so this module installs a $Net::OpenSSH::FACTORY hook that implements a SSH connection caching scheme. π«Ά
$Net::OpenSSH::ConnectionCache::MAX_SIZE controls the cache size. Once as many connections are allocated, the module will try to free any of them before allocating a new one. it's giving "make room, bestie" π₯
The function "clean_cache" makes the module forget (and close) all the cached connections:
Net::OpenSSH::ConnectionCache::clean_cache();
π COPYRIGHT AND LICENSE π
Copyright (C) 2011, 2014 by Salvador FandiΓ±o (sfandino@yahoo.com)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. periodt π
mwah π β source/version perl v5.40.2, dated 2025-01-03. bye bestie π
π¦ where this page comes from
- alpine 3.22: perl-net-openssh-doc 0.84-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms