I still think that integration with spring-boot and spring caching is part
of the same project. Ignite should be integrating with spring-boot to
deliver caching functionality to spring users.

I just want to get another confirmation. We are saying that all the
annotations described in Spring caching are supported by Ignite, right? In
that case, can we crate an example using all these annotations and add it
to the set of Ignite examples shipped with the project?

I also think we need to post a question on StackOverflow with spring-boot
tag and ask them how to add Ignite configuration to the spring-booth search
path for caching providers. I don’t mind doing this, but I would like to
show a GitHub link to some example of using Spring Caching with Ignite.

D.

On Thu, Nov 5, 2015 at 10:23 AM, Valentin Kulichenko <
[email protected]> wrote:

> See my comments inline.
>
> Also note that we have a documentation page for this feature:
> https://apacheignite.readme.io/docs/spring-caching
>
> On Thu, Nov 5, 2015 at 10:10 AM, Andrey Gura <[email protected]> wrote:
>
> > We should not support this annotations. All listed annotation (excluding
> > @CacheConfig) allows user to manage caching behaviour (eg. eviction on
> > cache update) and doesn't affect CacheManager implementation.
> >
>
> I think it's better to say that implementing cache manager is enough to
> support all these annotations as well as any other functionality of Spring
> Caching. So yes, we do support them.
>
>
> >
> > @CacheConfig just defines cache configuration that will be used for
> > particular Spring service.
> >
>
> This is right. This annotation should be processed only by Spring and
> allows, for example, to use custom cache manager implementation (e.g.,
> Ignite-based).
>
>
> >
> > On Thu, Nov 5, 2015 at 9:01 PM, Dmitriy Setrakyan <[email protected]
> >
> > wrote:
> >
> > > How about @CachePut, @Caching, @CacheConfig, and @CacheEvict
> annotations
> > > listed here:
> > >
> > >
> > >
> >
> http://docs.spring.io/spring/docs/4.2.0.RC1/spring-framework-reference/htmlsingle/#cache-annotations-put
> > >
> > > We support all these?
> > >
> > > D.
> > >
> > > On Thu, Nov 5, 2015 at 8:00 AM, Andrey Gura <[email protected]>
> wrote:
> > >
> > > > Oops, I didn't noticed.
> > > >
> > > > Ok, it means we already have this integration.
> > > >
> > > > On Thu, Nov 5, 2015 at 6:54 PM, Valentin Kulichenko <
> > > > [email protected]> wrote:
> > > >
> > > > > Andrey, we already have this. See SpringCacheManager class.
> > > > >
> > > > > -Val
> > > > >
> > > > > On Thursday, November 5, 2015, Andrey Gura <[email protected]>
> > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > @Cacheable is not Spring Boot annotation. It's part of
> > spring-context
> > > > > > module.
> > > > > >
> > > > > > If client want use @Cacheable annotation in Spring based project
> he
> > > > > should
> > > > > > configure cache manager in application context.
> > > > > >
> > > > > > Cache manager should implement
> > org.springframework.cache.CacheManager
> > > > > > interface. So we need implement it in order to provide Ignite
> based
> > > > > caching
> > > > > > to Spring users.
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Thu, Nov 5, 2015 at 8:32 AM, Dmitriy Setrakyan <
> > > > [email protected]
> > > > > > <javascript:;>>
> > > > > > wrote:
> > > > > >
> > > > > > > Igniters,
> > > > > > >
> > > > > > > I am aware that Ignite supports Spring @Cacheable annotation.
> > Does
> > > it
> > > > > > mean
> > > > > > > that Ignite integrated with Spring boot?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://docs.spring.io/spring-boot/docs/1.3.0.M1/reference/html/boot-features-caching.html
> > > > > > >
> > > > > > > If not, we should definitely add such integration.
> > > > > > >
> > > > > > > D.
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Andrey Gura
> > > > > > GridGain Systems, Inc.
> > > > > > www.gridgain.com
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Andrey Gura
> > > > GridGain Systems, Inc.
> > > > www.gridgain.com
> > > >
> > >
> >
> >
> >
> > --
> > Andrey Gura
> > GridGain Systems, Inc.
> > www.gridgain.com
> >
>

Reply via email to