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.0

yac 2.4.0

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.0
(stable)
- Embed small scalars directly in the hash slot, avoiding value allocations for tiny entries
- Switch compression from FastLZ to LZ4 (better ratio and speed)
- get() accepts an optional $default argument (returned on miss instead of NULL)
- dump() gains an $offset parameter and reports hits, atime, embedded and c_len per entry
- Per-entry hit counters and start_time exposed in info()/dump()
- Multi-get omits missing keys (filled with $default when given) instead of false placeholders
- Field-by-field slot commits and spinlock backoff (pause/yield) reduce contention overhead
- Fixed a startup hang when values_memory_size is below the 4M segment minimum
- Fixed Windows shared memory cleanup (view unmapped exactly once)
- Fixed valgrind-reported leaks and uninitialized reads (MINFO output, compression error paths)

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

Dependencies for release 2.4.0
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