package twotiercache

import (
	"go.uber.org/zap"

	"codeberg.org/mapleopentech/monorepo/cloud/maplefile-backend/pkg/storage/cache/cassandracache"
	"codeberg.org/mapleopentech/monorepo/cloud/maplefile-backend/pkg/storage/memory/redis"
)

// ProvideTwoTierCache provides a two-tier cache instance for Wire DI
func ProvideTwoTierCache(
	redisCache redis.Cacher,
	cassandraCache cassandracache.CassandraCacher,
	logger *zap.Logger,
) TwoTierCacher {
	return NewTwoTierCache(redisCache, cassandraCache, logger)
}
