FreeBSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.016_21.016_21.016_21.016_21.016_2
FreeBSD:14:quarterly1.016_21.016_2n/a1.016_21.016_2
FreeBSD:15:latest1.016_21.016_2n/a1.016_21.016_2
FreeBSD:15:quarterly1.016_21.016_2n/an/an/a
FreeBSD:16:latest1.016_21.016_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Test 1

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
FileSizeSHA256
Cache-AgainstFile-1.016.tar.gz2095664e97a636aa733ba453999cd45bbef97ba4e462fab45b7f75f0ef5a2e276f5d5
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.