Login  |  Packages  |  Support  |  Bugs
PECL is deprecated.

Have you heard about PIE? 🥧 PHP Installer for Extensions (PIE) is the replacement for PECL. We recommend publishing your extension using PIE instead.

Find out more at https://github.com/php/pie.

Top Level :: Caching :: yac :: 2.4.2

yac 2.4.2

Package Information
Summary lockless user data cache
Maintainers Xinchen Hui < laruence at php dot net > (lead) [details]
License PHP
Description yac is a fast, lock-free, shared memory user data cache for PHP. it can be used to replace APC or local memcached.
Homepage https://github.com/laruence/yac
Release notes
Version 2.4.2
(stable)
- String values are decoded straight into the zend_string handed back to PHP, no second copy per read
- Copying a value and checksumming it are a single pass on writes as well as reads
- The next probe slot is prefetched while the current one's lock, load and compare are in flight
- Faster argument parsing for add/set/get/delete/dump
- dump() builds its result array in bulk instead of one insert per entry
- Overwriting an entry whose value outgrew its block skips the checksum of the block being replaced
- CRC-32C picks its implementation by probing the CPU at runtime, so a binary built with -msse4.2 still runs on older hardware
- Fixed get() crashing under concurrency: find() bumped the hit count and access time without holding the slot, overwriting the type flag a concurrent write had just published
- flush() now takes every slot before clearing the table; it could previously land mid-publish and leave a slot permanently unusable
- dump() returns an empty result while a flush() is in progress instead of reporting half-cleared slots
- Fixed a wild-pointer read in the block-value guard of find()
- Fixed dump() on PHP older than 7.4
- Fixed the packaged tarball missing storage/crc, which made it fail to build

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ] [ View Documentation ]

Dependencies for release 2.4.2
PHP Version: PHP 7.0.0 or newer
PEAR Package: PEAR 1.4.0 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 13:08:36 2026 UTC
Bandwidth and hardware provided by: pair Networks