Well, you can use, for example, eviction policy: https://apacheignite.readme.io/docs/evictions
Evgenii 2018-07-10 16:43 GMT+03:00 monstereo <[email protected]>: > thanks, > then in hibernate l2 cache, we do not provide the specific data to load > cache?(igniteCache.loadCache() ) > but then, how many data will be in l2 cache, can I limit this space? > > > ilya.kasnacheev wrote > > Hello! > > > > From the comments of Java file linked: > > > > * When running example, it's easy to notice that when an object is first > > * put into a database, the L2 cache is not used and it's contents is > > empty. > > * However, *when an object is first read from the database, it is > > immediately* > > * *stored in L2 cache (which is Ignite In-Memory Data Ignite cluster in > > fact)*, which can > > * be seen in stats output. Further requests of the same object only read > > the data > > * from L2 cache and do not hit the database. > > > > Regards, > > > > -- > > Ilya Kasnacheev > > > > 2018-07-10 16:23 GMT+03:00 monstereo < > > > mehmetozanguven@ > > > >: > > > >> Thanks. > >> I have seen this document before. > >> However, I could not understand how datas are loading ignite cache(s)? > >> Can you explain what is going on this .java class? > >> > >> > >> > >> ezhuravlev wrote > >> > Looks like you read a wrong documentation, for Hibernate L2 cache you > >> > don't > >> > even need to implement CacheStoreAdapter - it's needed only for using > >> 3rd > >> > party db as a Cache Store. Here is the right documentation for using > >> > Ignite > >> > as L2 Hibernate cache: > >> > https://apacheignite-mix.readme.io/docs/hibernate-l2-cache > >> > > >> > Also, here is the working example: > >> > https://github.com/apache/ignite/blob/master/examples/ > >> src/main/java-lgpl/org/apache/ignite/examples/datagrid/hibernate/ > >> HibernateL2CacheExample.java > >> > > >> > Evgenii > >> > > >> > 2018-07-10 15:59 GMT+03:00 monstereo < > >> > >> > mehmetozanguven@ > >> > >> > >: > >> > > >> >> Even I am using apache ignite documentation or High Performance > >> In-Memory > >> >> computing book, > >> >> I could not understand. > >> >> > >> >> I have created simple cache with ignite (using postgresql) > >> (implementing > >> >> CacheStoreAdapter vs...) > >> >> Also I have created simple hibernate project (gets data from > database, > >> >> update vs...) > >> >> > >> >> But I can not combine them. > >> >> > >> >> *Could someone explain the job step by step ?* > >> >> (In High Performance In-Memory computing book -> all xml > configuration > >> in > >> >> a > >> >> file which I could not handle at all, if possible, I want to create > >> all > >> >> the > >> >> xml file seperately) > >> >> > >> >> thanks, > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > >> >> > >> > >> > >> > >> > >> > >> -- > >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > >> > > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
