-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
38 lines (36 loc) · 1.29 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
use PhpCache\CacheClient\CacheClient;
use PhpCache\CacheClient\CacheClientFactory;
use PhpCache\CacheServer\ActionHandler;
use PhpCache\CacheServer\CacheServer;
use PhpCache\CacheServer\CacheServerFactory;
use PhpCache\IO\CacheIOHandler;
use PhpCache\IO\CacheIOHandlerFactory;
use PhpCache\Storage\Bucket;
use PhpCache\Storage\BucketFactory;
use PhpCache\Storage\Maintainer;
use PhpCache\Storage\MaintainerFactory;
return [
'config' => [
'memoryLimit' => 1024,
'location' => __DIR__.'/temp/php-cache.sock',
'port' => 9000,
'bufferSize' => 256,
'ttl' => 3600,
'backupTime' => 1800,
'backupDir' => __DIR__.'/.backup',
'socketType' => CacheIOHandler::SOCKET_TYPE_FILE,
],
'services' => [
'factories' => [
CacheServer::class => CacheServerFactory::class,
CacheIOHandler::class => CacheIOHandlerFactory::class,
CacheClient::class => CacheClientFactory::class,
Maintainer::class => MaintainerFactory::class,
Bucket::class => BucketFactory::class,
],
'invokables' => [
ActionHandler::class => ActionHandler::class,
],
],
];