ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ilya.kasnacheev" <ilya.kasnach...@gmail.com>
Subject Re: How to provide a dependency to a custom CacheStoreAdapter
Date Fri, 01 Dec 2017 11:27:53 GMT
Hello Matt!

I imagine you can have a custom CacheStore factory (implementing
Factory<CacheStore&lt;K, V>>) that will create (or otherwise obtain) the
dependency, and then supply it to every subsequent CacheStoreAdapter it
creates.

Then you will pass the same CacheStoreFactory in configuration of each cache
that you create, via setCacheStoreFactory().

You can also inject some useful things into CacheStore, such as Ignite
instance via @IgniteInstanceResource annotation and CacheStoreSession via
@CacheStoreSessionResource.

Hope this helps,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message