Options
All
  • Public
  • Public/Protected
  • All
Menu

可以用于列表池的简单类

Hierarchy

  • ListPool

Index

Properties

Static Private Readonly _objectQueue

_objectQueue: any[] = []

Methods

Static clearCache

  • clearCache(): void

Static free

  • free<T>(obj: Array<T>): void

Static obtain

  • obtain<T>(): T[]

Static trimCache

  • trimCache(cacheCount: any): void

Static warmCache

  • warmCache(cacheCount: number): void
  • 预热缓存,使用最大的cacheCount对象填充缓存

    Parameters

    • cacheCount: number

    Returns void

Generated using TypeDoc