>
>
> cache.put(department.getKey(), department);
> cache.put(person.getKey(), person);
>
>
As a side note: it is actually a bad practice to have a key as a field in a
value, because this way it will be stored in cache twice.

Sergi




> Thanks,
> Sergej
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Composite-affinity-key-tp8462p8464.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to