devel/p5-Cache-AgainstFile 1.016_2
Cache data structures parsed from files, watching for updates
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- GPLv2
- Categories
- devel, perl5
- Package size
- 29.7 KiB, 63.0 KiB installed
Description
A module that caches a data structure against a filename, statting the file to determine whether it has changed and needs to be re-parsed. You supply a routine to generate the data structure given the filename.
This module is recommended for files which change infrequently but are read often, especially if they are expensive to parse.
This approach has the advantage over lazy caching that multiple processes holding a cache will all update at the same time so you will not get inconsistent results if you request data from different processes.
The module itself is simply a factory for various backend modules. The distribution includes backends for in-memory caching or file caching using Storable, plus an adaptor to use any modules offering the Cache or Cache::Cache interfaces as the cache implementation.
Data structures are automatically serialised/deserialised by the backend modules if they are being persisted somewhere other than in memory (e.g. on the filesystem).
Install
As a binary package — by origin, or by package name:
pkg install devel/p5-Cache-AgainstFile
pkg install p5-Cache-AgainstFile
From the ports tree:
cd /usr/ports/devel/p5-Cache-AgainstFile/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Cache-AgainstFile>0:devel/p5-Cache-AgainstFile
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.016_2 | 1.016_2 | 1.016_2 | 1.016_2 | 1.016_2 |
| FreeBSD:14:quarterly | 1.016_2 | 1.016_2 | n/a | 1.016_2 | 1.016_2 |
| FreeBSD:15:latest | 1.016_2 | 1.016_2 | n/a | 1.016_2 | 1.016_2 |
| FreeBSD:15:quarterly | 1.016_2 | 1.016_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.016_2 | 1.016_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Log-Trace>=0: devel/p5-Log-Trace
Runtime 1
p5-Log-Trace>=0: devel/p5-Log-Trace
Test 1
p5-Test-Assertions>=0: devel/p5-Test-Assertions
The full lists below include those, and their dependencies in turn.
All build dependencies 2
All run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 12
- %%PERL5_MAN3%%/Cache::AgainstFile.3.gz
- %%PERL5_MAN3%%/Cache::AgainstFile::Base.3.gz
- %%PERL5_MAN3%%/Cache::AgainstFile::CacheModule.3.gz
- %%PERL5_MAN3%%/Cache::AgainstFile::Memory.3.gz
- %%PERL5_MAN3%%/Cache::AgainstFile::Null.3.gz
- %%PERL5_MAN3%%/Cache::AgainstFile::Storable.3.gz
- %%SITE_PERL%%/Cache/AgainstFile.pm
- %%SITE_PERL%%/Cache/AgainstFile/Base.pm
- %%SITE_PERL%%/Cache/AgainstFile/CacheModule.pm
- %%SITE_PERL%%/Cache/AgainstFile/Memory.pm
- %%SITE_PERL%%/Cache/AgainstFile/Null.pm
- %%SITE_PERL%%/Cache/AgainstFile/Storable.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Cache-AgainstFile-1.016.tar.gz | 20956 | 64e97a636aa733ba453999cd45bbef97ba4e462fab45b7f75f0ef5a2e276f5d5 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.