Skip to content

Commit dd4a845

Browse files
authored
Merge pull request #8298 from cakephp/4.x-apcu-engine
add ApcuEngine options section
2 parents daad5ec + 825b009 commit dd4a845

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/en/core-libraries/caching.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,17 @@ FileEngine uses the following engine specific options:
159159
- `mask` The mask used for created files
160160
- `path` Path to where cachefiles should be saved. Defaults to system's temp dir.
161161

162+
### ApcuEngine Options
163+
164+
ApcuEngine does not have any engine specific options. It requires the
165+
[APCu](https://php.net/apcu) extension to be installed and enabled.
166+
167+
Because APCu stores values in the local webserver process shared memory, it is
168+
best suited for data that can be regenerated and does not need to be shared
169+
between servers. When clearing cache data, ApcuEngine removes entries matching
170+
the cache configuration's `prefix`, so use unique prefixes for each cache
171+
configuration that uses APCu.
172+
162173
<a id="caching-redisengine"></a>
163174

164175
### RedisEngine Options

0 commit comments

Comments
 (0)