package service import ( "context" "github.com/google/uuid" "gitea.privcloud.tech/vlad_marlo/mtusi2026lab2/internal/model/dto" ) // ProfileCache stores immutable public account profiles; misses fall back to PostgreSQL. type ProfileCache interface { // GetProfile returns a cached profile or a miss, including on backend failure. GetProfile(context.Context, uuid.UUID) (dto.UserDTO, bool) // PutProfile stores a bounded-lifetime profile on a best-effort basis. PutProfile(context.Context, dto.UserDTO) }