Finally I can run the codes, and I am getting cache hits, puts or miss.
But I want to iterate all the cache, and want to see how many elements in
it.
(I could not see any configuration about cache key,value in the
ignite-configuration.xml)
(Actually its size always showing 0)
In ignite configuration.xml:
<property name="cacheConfiguration">
<list>
<bean parent="transactional-cache">
<property name="name" value="Person"/>
</bean>
</list>
</property>
Here is the code that I have written:
public static void printCache(Ignite ignite){
IgniteCache igniteCache = ignite.getOrCreateCache("Person");
Iterator<Cache.Entry> itr = igniteCache.iterator();
System.out.println("asdaas");
while (itr.hasNext()){
System.out.println(itr.next().getKey() + " " +
itr.next().getValue());
}
}
ezhuravlev wrote
> Why can't you add the dependency from the 3rd party repository, that was
> described on the page I've shared earlier?
>
> Evgenii
>
> 2018-07-12 16:22 GMT+03:00 monstereo <
> mehmetozanguven@
> >:
>
>> I know, it is hard to answer, but I don't know what exactly I should
>> do...
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/