newTieredCache function Null safety

Cache newTieredCache(
  1. Cache primary,
  2. Cache secondary
)

Creates a new TieredCache with a primary and secondary Cache instances

  • primary: The primary cache
  • secondary: The secondary cache

Returns a Cache backed by a TieredCache

Implementation

Cache newTieredCache(Cache primary, Cache secondary) {
  return Cache.newTieredCache(primary, secondary);
}