YPYan Pitanguiinyanpitangui.com·Mar 19 · 5 min readPart 1 - Building my homelab foundation (Docker, DNS, reverse proxy)Building the foundation of my homelab I originally built my homelab just to experiment. I wanted to try things out, run a few services, and see what I could do with a small machine at home. Nothing se00
YPYan Pitanguiinyanpitangui.com·Jun 15, 2023 · 2 min read[EN] Detecting if the application is running to create migrationsChallenges with Scoped Dependencies in DbContext In Entity Framework Core, DbContext is often used to interact with the database. However, in complex scenarios like multi-tenant applications, you might need to inject scoped services such as TenantPro...00
YPYan Pitanguiinyanpitangui.com·Jun 15, 2023 · 2 min read[PT-BR] Detectando se a aplicação está rodando para criar migrationsDesafios com Dependências "Scoped" no DbContext No Entity Framework Core, o DbContext é frequentemente usado para interagir com o banco de dados. No entanto, em cenários complexos como aplicações multi-tenant, você pode precisar injetar serviços "sco...00
YPYan Pitanguiinyanpitangui.com·Jun 14, 2023 · 2 min read[EN] Efficiently Deleting Redis Keys by Pattern in .NETTraditional Approach: The Drawbacks of Single Key Deletion When working with Redis, you might typically use a method like the following to delete keys: public class CacheManager { private readonly IDistributedCache _cache; public CacheMa...00
YPYan Pitanguiinyanpitangui.com·Jun 14, 2023 · 2 min read[PT-BR] Deletando chaves de maneira eficiente utilizando regex no .NETAbordagem Tradicional: As Desvantagens da Exclusão de Chaves uma por uma Ao trabalhar com Redis, você pode usar um método como o seguinte para excluir chaves: public class CacheManager { private readonly IDistributedCache _cache; public C...00