盲盒转盘 优化-缓存配置修改 提交
This commit is contained in:
@@ -25,7 +25,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
||||
$this->redis->connect(config('redis.host'), config('redis.port')); // 根据实际配置调整主机和端口
|
||||
// 选择数据库1
|
||||
$this->redis->select(1);
|
||||
$this->cache_time = 60 *24;
|
||||
$this->cache_time = 60*60; //缓存一小时
|
||||
} catch (\Exception $e) {
|
||||
Log::record('Redis连接失败: ' . $e->getMessage(), 'error');
|
||||
$this->redis = null;
|
||||
|
||||
@@ -194,7 +194,7 @@ return [
|
||||
// 密码
|
||||
'password' => '',
|
||||
// 缓存前缀
|
||||
'prefix' => 'fastadmin_',
|
||||
'prefix' => 'yusheng_',
|
||||
// 缓存有效期 0表示永久缓存
|
||||
'expire' => 0,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user