Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheEntry

Hierarchy

  • CacheEntry

Index

Constructors

constructor

  • The resource class. Allows to be collected as a garbage if not use for some time or ticks

    Parameters

    • cache: CacheMap
    • key: string
    • item: string

      Bitmap, HTML5Audio, WebAudio - whatever you want to store in the cache

    Returns CacheEntry

Methods

allocate

free

  • free(byTTL?: boolean): void

isStillAlive

  • isStillAlive(): boolean

setTimeToLive

  • setTimeToLive(ticks?: number, seconds?: number): CacheEntry

touch

  • touch(): void

Generated using TypeDoc