first commit
This commit is contained in:
24
config/thinkcache.php
Normal file
24
config/thinkcache.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
return [
|
||||
'default' => getenv('CACHE_DRIVER') ?: 'file',
|
||||
'stores' => [
|
||||
'file' => [
|
||||
'type' => 'File',
|
||||
// 缓存保存目录
|
||||
'path' => runtime_path() . '/cache/',
|
||||
// 缓存前缀
|
||||
'prefix' => '',
|
||||
// 缓存有效期 0表示永久缓存
|
||||
'expire' => 0,
|
||||
],
|
||||
'redis' => [
|
||||
'type' => 'redis',
|
||||
'host' => getenv('CACHE_HOSTNAME') ?: '127.0.0.1',
|
||||
'port' => getenv('CACHE_HOSTPORT') ?: 6379,
|
||||
'select' => getenv('CACHE_SELECT') ?: 0,
|
||||
'password' => getenv('CACHE_PASSWORD') ?: '',
|
||||
'prefix' => 'redis_',
|
||||
'expire' => 0,
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user