mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
2472608c6d
commit
564fc25cbc
5 changed files with 173 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue