requireCacheStore method

Repository requireCacheStore(
  1. String name
)

Returns the cache cache.Repository identified by name or throws ProviderConfigException if the cache manager is absent.

Implementation

cache.Repository requireCacheStore(String name) {
  final manager = cacheManager;
  if (manager == null) {
    throw ProviderConfigException(
      'Cache manager is required for cache-backed session drivers.',
    );
  }
  return manager.store(name);
}