Update LightCacheInside.php

This commit is contained in:
Wang 2023-06-05 13:50:57 +08:00 committed by Jerry Ma
parent 4791099a78
commit 6173cf2e37

View File

@ -17,7 +17,8 @@ class LightCacheInside
public static function init(): bool
{
try {
self::createTable('wait_api', 3, 65536);
$size = ZMConfig::get('global', 'runtime')['inside_table_size'] ?? 65536;
self::createTable('wait_api', 3, $size);
self::createTable('connect', 3, 64); // 用于存单机器人模式下的机器人fd的
self::createTable('static_route', 64, 256); // 用于存储
self::createTable('light_array', 8, 512, 0.6);