SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Plack-Middleware-Cached rpm build for : openSUSE Tumbleweed. For other distributions click perl-Plack-Middleware-Cached.

Name : perl-Plack-Middleware-Cached
Version : 0.15 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.71 Date : 2024-08-05 20:13:42
Group : Development/Libraries/Perl Source RPM : perl-Plack-Middleware-Cached-0.15-1.71.src.rpm
Size : 0.03 MB
Packager : (none)
Summary : Glues a cache to your PSGI application
Description :
This module can be used to glue a cache to a the PSGI manpage applications
or middleware. A *cache* is an object that provides at least two methods to
get and set data, based on a key. Existing cache modules on CPAN include
the CHI manpage, the Cache manpage, and the Cache::Cache manpage. Although
this module aims at caching PSGI applications, you can use it to cache any
function that returns some response object based on a request environment.

Plack::Middleware::Cached is put in front of a PSGI application as
middleware. Given a request in form of a PSGI environment E, it either
returns the matching response R from its cache, or it passed the request to
the wrapped application, and stores the application\'s response in the
cache:

________ _____
Request ===E===>| |---E--->| |
| Cached | | App |
Response < ==R====|________|< --R----|_____|

In most cases, only a part of the environment E is relevant to the request.
This relevant part is called the caching *key*. By default, the key is set
to the value of REQUEST_URI from the environment E.

Some application may also modify the environment E:

________ _____
Request ===E===>| |---E--->| |
| Cached | | App |
Response < ==R+E==|________|< --R+E--|_____|

If needed, you can configure Plack::Middleware::Cached with *env* to also
cache parts of the environment E, as it was returned by the application.

If Plack::Middleware::Cached retrieved a response from the cache, it sets
the environment variable \'plack.middleware.cached\'. You can inspect whether
a response came from the cache or from the wrapped application like this:

builder {
enable sub {
my $app = shift;
sub {
my $env = shift;
my $res = $app->($env);
if ($env->{\'plack.middleware.cached\') {
...
}
return $res;
};
};
enable \'Cached\', cache => $cache;
$app;
},

Caching delayed/streaming responses is supported as well.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-P/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Plack-Middleware-Cached-0.15-1.71.noarch.rpm
     

Provides :
perl(Plack::Middleware::Cached)
perl-Plack-Middleware-Cached

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(Plack) >= 1.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Plack
/usr/lib/perl5/vendor_perl/5.40.0/Plack/Middleware
/usr/lib/perl5/vendor_perl/5.40.0/Plack/Middleware/Cached.pm
/usr/share/doc/packages/perl-Plack-Middleware-Cached
/usr/share/doc/packages/perl-Plack-Middleware-Cached/Changes
/usr/share/doc/packages/perl-Plack-Middleware-Cached/LICENSE
/usr/share/doc/packages/perl-Plack-Middleware-Cached/README
/usr/share/man/man3/Plack::Middleware::Cached.3pm.gz

 
ICM