Property | Type | Description | |
---|---|---|---|
gcDeltaTimeConfig | float | ||
threshold1 | float | ||
threshold2 | float | ||
threshold3 | float |
Method | Description | |
---|---|---|
Add ( string key, |
添加原始缓存
|
|
Awake ( ) : void | ||
Clear ( ) : void |
清除所有缓存
|
|
ClearAllCache ( ) : void |
Clears all cache.
|
|
ClearCache ( string key ) : bool | ||
ContainsKey ( string key ) : bool |
是否包含cacheKey
|
|
DisposeRefer ( int count ) : void |
真正销毁对象
|
|
GCCollect ( byte segmentIndex ) : bool |
手动回收 可以释放的对象
|
|
Get ( string key ) : |
获取值
|
|
GetCache ( string key ) : ReferGameObjects |
获取值
|
|
OnDestroy ( ) : void | ||
Remove ( string key ) : void | ||
StoreCache ( |
放入缓存
|
|
StoreCache ( ReferGameObjects refer ) : bool |
放入缓存
|
|
Update ( ) : void |
内存阈值检测和自动对象回收
|
Method | Description | |
---|---|---|
Add ( int hash, |
添加原始项目
|
|
AutoGC ( byte segmentIndex ) : void |
自动回收对象当前segmentindex和之前的所有片段
|
|
CanGC ( int key, bool force ) : bool |
能否回收
|
|
ClearCache ( int key, bool force ) : bool |
清理当前key的缓存实例
|
|
ContainsKey ( int hash ) : bool | ||
GC ( byte segmentIndex, bool force ) : bool |
回收当前片段所有可回收对象
|
|
Get ( int hash ) : |
||
GetCache ( int key ) : ReferGameObjects |
获取可用的实例
|
|
Remove ( int key ) : void |
public static Add ( string key, |
||
key | string | |
value | ||
type | byte | |
return | bool |
public static ClearCache ( string key ) : bool | ||
key | string | |
return | bool |
public static ContainsKey ( string key ) : bool | ||
key | string | |
return | bool |
public static GCCollect ( byte segmentIndex ) : bool | ||
segmentIndex | byte | |
return | bool |
public static Get ( string key ) : |
||
key | string | |
return |
public static GetCache ( string key ) : ReferGameObjects | ||
key | string | |
return | ReferGameObjects |
public static StoreCache ( |
||
gobj | ||
return | bool |
public static StoreCache ( ReferGameObjects refer ) : bool | ||
refer | ReferGameObjects | |
return | bool |