springroll.AssetCache Class

Module: Core

A class that remembers the assets loaded by the AssetManager

delete

(
  • asset
)

Defined in delete:66

Removes a single asset from the cache.

Parameters:

destroy

()

Defined in destroy:139

Destroy the cache. Don't use after this.

destroyResult

(
  • result
)
private

Defined in destroyResult:103

Destroy a result object.

Parameters:

  • result

    The object to destroy.

empty

()

Defined in empty:127

Removes all assets from the cache.

read

(
  • id
)

Defined in read:32

Retrieves a single asset from the cache.

Parameters:

write

(
  • id
  • content
)

Defined in write:46

Adds a single asset to the cache.

Parameters:

  • id String

    The id to save the asset as.

  • content

    The asset content to save.

_cache

Object private

Defined in _cache:21

The cache containing assets