mirrored_repositories/architecture-template/lib/product
import 'package:clean_architecture/product/cache/model/user_cache_model.dart';
import 'package:core/core.dart';

/// [ProductCache] is a cache manager for the product module.
final class ProductCache {
  ///
  ProductCache({required CacheManager cacheManager}) : _cacheManager = cacheManager;

  final CacheManager _cacheManager;

  Future<void> init() async {
    await _cacheManager.init(
      items: [
        UserCacheModel.empty(),
      ],
    );
  }

  late final HiveCacheOperation<UserCacheModel> userCacheOperation = HiveCacheOperation<UserCacheModel>();
}
