Hey Peter,

If you need to set the initial capacity of the cache, one way you can do it is 
to provide an EvictionPolicy to the CacheConfiguration. In the EvictionPolicy 
implementation, example - SortedEvictionPolicy or LruEvictionPolicy, you have 
constructors where you can specify the max size of the cache. Entries will be 
evicted after that max size is reached.

If you are looking set the NearCache start size, you can set the 
NearCacheConfiguration (using CacheConfiguration.setNearConfiguration) which 
has a constructor to provide the nearStartSize

HTH,
Rohan Honwade

> On Dec 8, 2018, at 9:22 PM, Peter Sham <[email protected]> wrote:
> 
> I am reading performance tips on Ignite.Net 
> (https://apacheignite-net.readme.io/docs/performance-tips#section-tune-cache-start-size)
>  and upon "Tune Cache Start Size", there should be a property called 
> "StartSize" in CacheConfiguration. But there is no such property. What should 
> the configuration property for setting initial cache size? Cannot find it on 
> API documentation.  Anyone can help? 
> Sent from the Apache Ignite Users mailing list archive 
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__apache-2Dignite-2Dusers.70518.x6.nabble.com_&d=DwMCAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=ek_ZxfXBew4H9UObdUMTqZSrEwyXpGs2ljdWVBRM1l4&m=epbLmPW9Tdfaj7Mwya-HW_nweAcz64i7lr4Qq6oLJq0&s=5E4RYL0ote0j9xb1VwAu4PbVPjJcfNyqZvc6K905TwE&e=>
>  at Nabble.com.

Reply via email to