Download the PHP package orieg/judy-cache without Composer

On this page you can find all versions of the php package orieg/judy-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package judy-cache

judy-cache

CI Packagist Version

High-performance PSR-16 and PSR-6 in-memory cache backed by Judy arrays, built for long-running PHP: Laravel Octane, Swoole, RoadRunner, FrankenPHP worker mode, queue workers, and CLI daemons — anywhere process memory survives across requests. (In classic FPM the process dies with the request; use APCu there.)

Note: If you install the C extension, use ext-judy >= 2.6.0 for memory-safe teardown on mixed-type arrays (php-judy#162).


Quickstart (PSR-16)


What Judy Adds: Prefix Invalidation & Introspection

Because the trie maintains keys in lexicographic order, range operations walk only matching keys ($O(\text{matching keys})$ instead of scanning all $N$ entries):

Array-backed caches (plain arrays, Symfony ArrayAdapter, APCu) have no fast path for range eviction and must scan every key.


Symfony Cache / PSR-6

With symfony/cache installed:


Examples & Interactive Testbeds

Explore runnable implementations in examples/:


Semantics & Configuration


Performance & Memory

Measured on CI (PHP 8.4, ext-judy 2.6.0, median of 5, small serialized array values):

Metric / Workload judy-cache (ext-judy) Native PHP Array Symfony ArrayAdapter Symfony TagAwareAdapter
RAM (1M entries) 172 MB 495 MB 921 MB 1,407 MB
Prefix Prune (50k) 50 µs 12.4 ms 13.1 ms 14.0 µs (deferred)
Prefix Prune (1M) 58 µs 252.0 ms 268.0 ms 14.0 µs (deferred)
Write Ops/s (set) ~1.6M ops/s ~830k ops/s ~790k ops/s ~85k ops/s (10x slower)

Process Scope: Like PHP arrays, judy-cache is per-process. For data shared read-hot across many worker processes without invalidation needs, APCu remains optimal. For per-worker state, single-process daemons, and $O(\text{range})$ invalidation, judy-cache provides unmatched memory density and eviction speed.

See BENCHMARK.md for full benchmarks, methodology, and vendoring analyses.


Validation

Four independent layers executed across PHP 8.1–8.5 on both ext-judy and judy-polyfill:

  1. Spec Compliance: tests/simplecache.php verifies every testable clause of PSR-16.
  2. Behavior Tests: Clock/TTL edge cases, prefix operations, and serialization semantics.
  3. Model-Based Fuzzing: tests/fuzz.php tests randomized operations diffed step-by-step against an oracle.
  4. Backend Parity: Fully verified against php-judy C extension via judy-polyfill's differential test suite.

License

MIT.


All versions of judy-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
psr/simple-cache Version ^3.0
orieg/judy-polyfill Version ^2.6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package orieg/judy-cache contains the following files

Loading the files please wait ...