newTieredCache<T> abstract method

TieredCache<T> newTieredCache<T>(
  1. Cache<T> primary,
  2. Cache<T> secondary, {
  3. String? name,
  4. Clock? clock,
  5. bool? statsEnabled,
  6. CacheStats? stats,
})

Builds a new Tiered Cache

  • primary: The primary cache
  • secondary: The secondary cache
  • name: The name of the cache
  • clock: The source of time to be used on this, defaults to the system clock if not provided
  • statsEnabled: If statistics should be collected, defaults to false
  • stats: The statistics instance

Returns a new Cache

Implementation

TieredCache<T> newTieredCache<T>(Cache<T> primary, Cache<T> secondary,
    {String? name, Clock? clock, bool? statsEnabled, CacheStats? stats});