PHP Velho Oeste 2024

はじめに

APCu は、PHP で動くインメモリの key-value ストアです。 キーは文字列型で、値は任意のPHPの変数を保存できます。 APCu はユーザーランドの変数のキャッシュのみをサポートしています。

APCu のキャッシュは、Windows ではプロセス単位で機能します。 そのため、(スレッドベースではない) プロセスベースの SAPI を使う場合、 異なるプロセスをまたがってキャッシュは共有されません。

APCu は APC から opcode のキャッシュ機能を除いたものです。

一番はじめの APCu のコードベースには 4.0.0 というバージョンが付けられました。 これは当時の APC の master ブランチの最新版からフォークした時点のものです。

APCu 5.0.0 以降で PHP 7 がサポートされています。 PHP 8 は APCu 5.1.19 以降でサポートされています。

add a note add a note

User Contributed Notes 2 notes

up
0
Anonymous
4 years ago
First time "meeting" 'ACPu', I just wondered what it was before having to read the entire documentation...

This may(?) help: - https://www.google.com/search?q=what+is+APCu ;-)
up
-32
vtarasov at ridgepost dot com
7 years ago
Note that there are several cases when APCu cache does not persist and all set values are lost after PHP process exits. E.g. PHP CLI - successive CLI executions of the same script will find APCu cache empty.
To Top