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

    class

    CacheEntry

    constructor

    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
  • makes sure that resource wont freed by Time To Live if resource was already freed by TTL, put it in cache again

    Returns void

Generated using TypeDoc