newTieredCache<T> function
Cache<T>
newTieredCache<T>(
- CacheManager? manager,
- Cache<
T> primary, - Cache<
T> secondary, { - String? name,
- bool? statsEnabled,
- CacheStats? stats,
Builds a new Tiered Cache
manager
: An optional CacheManagerprimary
: The primary cachesecondary
: The secondary cachename
: The name of the cachestatsEnabled
: If statistics should be collected, defaults to falsestats
: The statistics instance
Implementation
Cache<T> newTieredCache<T>(
CacheManager? manager, Cache<T> primary, Cache<T> secondary,
{String? name, bool? statsEnabled, CacheStats? stats}) {
return (manager ?? CacheManager.instance).newTieredCache(primary, secondary,
name: name, statsEnabled: statsEnabled, stats: stats);
}