abstract class IRFileCache extends AnyRef

Centralized Scala.js IR cache.

Caches all Scala.js IR used in a given JVM. It supports creating of multiple sub-caches (IRFileCache.Cache) that track individual file sets. The global cache is fully thread-safe. However, the sub-caches are not.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IRFileCache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def clearStats(): Unit

    Reset statistics

  2. abstract def newCache: Cache

    Create a new sub-cache.

    Create a new sub-cache.

    Users should call IRFileCache.Cache.free once they are done to allow for more aggressive GC.

  3. abstract def stats: Stats

    Approximate statistics about the cache usage