Influence of magnetic anisotropy and dipolar interactions on magnetocaloric effect in nanostructured materials