allow setting a `cache` preference on remote and distributed objects