Skip to content

Enhance the Yac extension documentation - #5810

Merged
lacatoire merged 1 commit into
php:masterfrom
laruence:yac-docs-update
Aug 27, 2026
Merged

Enhance the Yac extension documentation#5810
lacatoire merged 1 commit into
php:masterfrom
laruence:yac-docs-update

Conversation

@laruence

Copy link
Copy Markdown
Member

Summary

  • Introduction (book.xml): highlight that the lock-free shared-memory design makes Yac extremely fast, and document the embedded values and the LZ4 compression backend introduced in yac 2.4.0
  • The Yac class (yac.xml): fill in the class introduction, the _prefix property and the overloaded property access
  • Yac::delete(): document the deferred-expiry semantics — entries are only marked expired, slots_used does not decrease, expired entries still show up in the dump and have to be filtered out by the caller; also fix the return-value semantics for repeated and multi-key deletions
  • Yac::dump(): document that $offset is available as of 2.4.0, and that passing -1 as $limit dumps all entries
  • Installation (setup.xml): document installing yac with PIE (as of 2.3.2) and the switch from FastLZ to LZ4 in 2.4.0

All version facts were verified against the yac 2.4.0 source code and confirmed with a live yac.so build.

Test plan

  • php configure.php (doc-base) passes
  • Rendered with phd and spot-checked all changed pages (intro, class page, delete, dump, installation)
  • docbook-cs style check passes with zero findings

- Highlight the performance characteristics of the lock-free design and
  document the embedded values and the LZ4 compression backend
  introduced in yac 2.4.0 in the introduction
- Fill in the Yac class introduction and the _prefix property, and
  describe the overloaded property access
- Document the deferred-expiry semantics of Yac::delete(): entries are
  only marked expired, slots_used does not decrease, expired entries
  still show up in the dump and must be filtered by the caller
- Document that Yac::dump() $offset is available as of 2.4.0, and that
  passing -1 as $limit dumps all entries
- Document installing yac with PIE (as of 2.3.2) and the switch from
  FastLZ to LZ4 in 2.4.0
@lacatoire
lacatoire merged commit d3a03f8 into php:master Aug 27, 2026
2 checks passed
@laruence
laruence deleted the yac-docs-update branch August 27, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants