Update api-example documentation

This commit is contained in:
2023-04-25 05:12:35 +08:00
parent e9219a51f3
commit 9593ef3408
2 changed files with 0 additions and 36 deletions

View File

@@ -82,23 +82,6 @@ YukiReflection.configs {
YukiReflection.Configs.isAllowPrintingLogs = true
```
### Enable or Disable Member Cache
You can enable or disable `Member` caching as follows.
To prevent system GC problems caused by excessive `Member` reuse, this feature is enabled by default.
> The following example
```kotlin
// Via the configs method
YukiReflection.configs {
isEnableMemberCache = true
}
// Set directly
YukiReflection.Configs.isEnableMemberCache = true
```
### Use the configs Method to Configure
In order to configure multiple features at once, you can directly use the `YukiReflection.configs { ... }` method to configure.
@@ -110,7 +93,6 @@ YukiReflection.configs {
debugTag = "YourCustomTag"
isDebug = true
isAllowPrintingLogs = true
isEnableMemberCache = true
}
```

View File

@@ -82,23 +82,6 @@ YukiReflection.configs {
YukiReflection.Configs.isAllowPrintingLogs = true
```
### 启用或禁用 Member 缓存
你可以使用如下方式来启用或禁用 `Member` 缓存。
为防止 `Member` 复用过高造成的系统 GC 问题,此功能默认启用。
> 示例如下
```kotlin
// 通过 configs 方法
YukiReflection.configs {
isEnableMemberCache = true
}
// 直接设置
YukiReflection.Configs.isEnableMemberCache = true
```
### 使用 configs 方法配置
为了一次性配置多个功能,你可以直接使用 `YukiReflection.configs { ... }` 方法进行配置。
@@ -110,7 +93,6 @@ YukiReflection.configs {
debugTag = "YourCustomTag"
isDebug = true
isAllowPrintingLogs = true
isEnableMemberCache = true
}
```