Options
All
  • Public
  • Public/Protected
  • All
Menu

A type which implements ICacheable should allow managing the state of cached resources

remarks

It should be used to prevent recreation of objects properties of which were unmodified, and to allow a correct handling of WebGL context loss by recreating WebGL resources.

Hierarchy

Implemented by

Index

Methods

invalidateCache

  • invalidateCache(): void
  • Deletes native (WebAssembly) memory used by a cached resource and removes reference to it, forcing the cached object to be recreated next time it is fetched.

    remarks

    Call .invalidateCache() to delete currently cached value

    Returns void

resetCache

  • resetCache(): void
  • Deletes native (WebAssembly) memory used by a cached resource and removes reference to it. And resets properties to the default values

    remarks

    Call .resetCache() to clear the cached value and prevent it from being recreated using saved properties.

    Returns void

Generated using TypeDoc