public ApiPostsController(ApplicationDbContext context, UserManager<ApplicationUser> userManager, MapperConfiguration mapperConfiguration ,IMemoryCache memoryCache, PostsCacher postsCacher) { _context = context; _userManager = userManager; _mapperConfiguration = mapperConfiguration; _memoryCache = memoryCache; _postsCacher = postsCacher; }
public HierarchyPostsController(ApplicationDbContext context, PostsCacher postsCacher, ConnectionMultiplexer redis) { _context = context; _postsCacher = postsCacher; _redis = redis; }