盲盒转盘 优化-缓存配置修改 提交
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;
|
||||
|
||||
Reference in New Issue
Block a user