Skip to main content

Helix Perforce Proxy - Cache

helix-p4p is a proxy cache for Perforce servers.

Flush

As revisions are added to files within the proxy, there is no internal cache expiry performed. Thus, a proxy server can retain excessive amounts of cached file revisions.

p4p-flush allows sysadmins to periodically expire content.

usage: p4p-flush [-h] [--ttl TTL] [--min-vers MIN_VERS] [--purge] path

Flush helix-p4p cache

positional arguments:
  path

options:
  -h, --help           show this help message and exit
  --ttl TTL            Expiry time (hours)
  --min-vers MIN_VERS  Number of revisions to keep
  --purge              Remove expired items from disk

Systemd

helix-p4p-sync

Oneshot for syncing a proxy

# 'example' is a given configuration name

systemctl enable helix-p4p-sync@example
systemctl start helix-p4p-sync@example

helix-p4p

Service for running a Helix P4P server.

# 'example' is a given configuration name

# Create a user to run the proxy and set the proxy root directory
useradd -m -d /opt/perforce/example -s /bin/sh example
su example -c "mkdir -p /opt/perforce/example/{root,cache}"

systemctl enable helix-p4p@example
systemctl start helix-p4p@example

TODO

  • Humanize file size outputs, such that automatic care is taken betwen bytes/MB/GB.
  • Read in argparse config variables from the environment.
  • Expand on test cases, expressing more edge cases.
  • Add Systemd scripts for configuration & running.

Metadata

Release files for helix-p4p-cache 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helix-p4p-cache 0.0.1
File Size Uploaded Provenance
helix-p4p-cache-0.0.1.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for helix-p4p-cache 0.0.1
File Interpreter ABI Platform
helix_p4p_cache-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / helix-p4p-cache-0.0.1.tar.gz

Download URL helix-p4p-cache-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9a7bfc0eea98b6ec18fd12e66505e6d2777ce5298c15e4f72de371bce6ab2849
BLAKE2b-256 checksum
How to use checksums
8852e600b8c38061e0ec4efcf3abd8d6b7c963a0eaa64060e8b52fe34ab78cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / helix_p4p_cache-0.0.1-py3-none-any.whl

Download URL helix_p4p_cache-0.0.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cd5f3f015779c6bb5d3a79018f36bc714ba0b6c1287843b981e5d105b9c51d1
BLAKE2b-256 checksum
How to use checksums
59bd20b4ef12575e269fa94d37a19428f95c9b9ad1d6f29f4acd301badcca2ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Security for helix-p4p-cache 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page