Added support for APCu caching method (#1442)

* Added support for APCu caching method

* Create APCu.php

* Update APCu.php

* Updated

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-04-10 19:38:53 +07:00 committed by GitHub
commit 564fc25cbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 173 additions and 0 deletions

View file

@ -146,6 +146,10 @@ function CACHE(string $cache_name)
* Datastore
*/
switch ($bb_cfg['datastore_type']) {
case 'apcu':
$datastore = new TorrentPier\Legacy\Datastore\APCu($bb_cfg['cache']['prefix']);
break;
case 'memcache':
$datastore = new TorrentPier\Legacy\Datastore\Memcache($bb_cfg['cache']['memcache'], $bb_cfg['cache']['prefix']);
break;