Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dex4er/deb-libplack-middleware-cache-perl
Debian package libplack-middleware-cache-perl - Plack::Middleware::Cache - Plack middleware that cache responses
https://github.com/dex4er/deb-libplack-middleware-cache-perl
Last synced: 10 days ago
JSON representation
Debian package libplack-middleware-cache-perl - Plack::Middleware::Cache - Plack middleware that cache responses
- Host: GitHub
- URL: https://github.com/dex4er/deb-libplack-middleware-cache-perl
- Owner: dex4er
- Created: 2013-12-03T12:23:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-12T22:05:39.000Z (about 11 years ago)
- Last Synced: 2024-10-28T09:02:11.257Z (about 2 months ago)
- Language: Perl
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
Plack::Middleware::Cache - Use Cached Responses of Certain URIsSYNOPSIS
builder {
enable "Cache",
match_url => [
'^/foo/',
'\\?.*xxx=.*',
],
cache_dir => '/tmp/plack-cache';
$app;
};DESCRIPTION
This middleware allows you to cache expensive and non-changing responses
from URIs that match a list of regular expression patterns.PARAMETERS
The following parameters can be used:match_url (required)
A regexp string or array ref of regexp strings to try to match the
current URL against.cache_dir (optional)
A directory to write the cached responses.Thanks to Strategic Data for supporting the writing and release of
this module.debug (optional)
Set to 1 to warn cache information.AUTHOR
Ingy döt NetCOPYRIGHT AND LICENSE
Copyright (c) 2011. Ingy döt Net.This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.See http://www.perl.com/perl/misc/Artistic.html