devel/p5-Tie-Cache 0.21_1 FreeBSD
LRU Cache in Memory through a tie interface
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- devel, perl5
- Package size
- 11.7 KiB, 23.2 KiB installed
Description
From README: This module implements a least recently used (LRU) cache in memory through a tie interface. Any time data is stored in the tied hash, that key/value pair has an entry time associated with it, and as the cache fills up, those members of the cache that are the oldest are removed to make room for new entries.
So, the cache only "remembers" the last written entries, up to the size
of the cache. This can be especially useful if you access great amounts
of data, but only access a minority of the data a majority of the time.
The implementation is a hash, for quick lookups, overlaying a doubly
linked list for quick insertion and deletion. On a WinNT PII 300, writes
to the hash were done at a rate 3100 per second, and reads from the hash
at 6300 per second. Work has been done to optimize refreshing cache
entries that are frequently read from, code like $cache{entry}, which
moves the entry to the end of the linked list internally.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Tie-Cache | 0.21_1 |
| OpenBSD | devel/p5-Tie-Cache | 0.21p0 |
| NetBSD | devel/p5-Tie-Cache | 0.21nb12 |
| DragonFly | devel/p5-Tie-Cache | 0.21_1 |
| HardenedBSD | devel/p5-Tie-Cache | 0.21_1 |
| GhostBSD | devel/p5-Tie-Cache | 0.21_1 |
Install
Binary package:
pkg install p5-Tie-Cache
From the ports tree:
cd /usr/ports/devel/p5-Tie-Cache/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Tie-Cache>0:devel/p5-Tie-Cache
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 | 0.21_1 | 0.21_1 | 0.21_1 | 0.21_1 | 0.21_1 |
| FreeBSD:14:quarterly | 0.21_1 | 0.21_1 | n/a | 0.21_1 | 0.21_1 |
| FreeBSD:15:latest | 0.21_1 | 0.21_1 | n/a | 0.21_1 | 0.21_1 |
| FreeBSD:15:quarterly | 0.21_1 | 0.21_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.21_1 | 0.21_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
Required by 2
Configuration
No options to configure.
- USES
- perl5 shebangfix
- Service scripts
- none
Files
pkg-plist 3
- %%PERL5_MAN3%%/Tie::Cache.3.gz
- %%SITE_PERL%%/Tie/Cache.pm
- %%SITE_PERL%%/Tie/tie-cache-bench.pl
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Tie-Cache-0.21.tar.gz | 11200 | d7eaa22f35a21b226f2bfd17782cd4226a584a2364659cd7bf8b24fe37f6fe89 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.