src/Debug.php
static public function setCache(string $type, string $method, string $key, $value = ''): void
    {
        [, $info] = self::info();
        self::set([
            'server' => $type,
            'method' => $method,
            'key' => $key,
            'value' => mb_strlen($value) > 100 ? (mb_substr($value, 0, 100) . '...[' . mb_strlen($value) . ']') : $value,
            'info' => $info
        ], 'cache');
    }
static public function setCache(string $type, string $method, string $key, $value = ''): void
    {
        [, $info] = self::info();
        self::set([
            'server' => $type,
            'method' => $method,
            'key' => $key,
            'value' => mb_strlen($value) > 100 ? (mb_substr($value, 0, 100) . '...[' . mb_strlen($value) . ']') : $value,
            'info' => $info
        ], 'cache');
    }
记录缓存相关的调试信息
@param string $type 缓存类型:mem/redis/file/...
@param string $method get/set/clear/...
@param string $key 键
@param string $value 值