You can use define one or more cache templates [1] with a custom affinity function (or any other setting) on the server side, then create caches using the template from the thin client.
[1] https://ignite.apache.org/docs/latest/configuring-caches/configuration-overview#cache-templates On Mon, Nov 22, 2021 at 5:56 PM Stephen Darlington < stephen.darling...@gridgain.com> wrote: > I think you’ll either have to configure that on the server side or in a > thick-client. > > > On 22 Nov 2021, at 14:42, R. Subhash Babu <rsubh...@gmail.com> wrote: > > > > Hi Igniters, > > > > I am trying to create a cache using a thin client > (ClientCacheConfiguration) and trying to see how I can > > > > 1) provide affinity function > > 2) restrict the number of partitions of the cache > > > > Any possible approach please? > > > > Thanks > > Subhash > > >