Hi,

Asterisk (*) in cache name is just a flag for Ignite to not initiate this cache but instead register it as a template, that for example can be used further for SQL table creations:

CREATE TABLE IF NOT EXISTS Person (
  id int,
  city_id int,
  name varchar,
  age int,
  company varchar,
  PRIMARY KEY (id, city_id)
) WITH "template=partitioned,backups=1,affinity_key=city_id, key_type=PersonKey, value_type=MyPerson";

Since you are going to create just a simple REPLICATED cache, there is no need for cache template defined first. If you need to create multiple caches with similar config just write a some kind of factory method in C++ that will return properly formed cache configuration that can be tuned in required on per-cache basis.


On 2022/06/21 11:46:19 "F.D." wrote:
> Hi Igniters,
> I'd like to create a new replicated cache using C++. I suppose I'll have to
> use a cache template, but it's not clear, for me, how to set the name of
> the template... for example the meaning of '*'.
>
> Thanks,
> F.D.
>

Reply via email to