[infinispan-issues] [JBoss JIRA] Issue Comment Edited: (ISPN-961) Implement a provider for Spring's Cache Abstraction

Olaf Bergner (JIRA) jira-events at lists.jboss.org
Mon Mar 7 04:30:45 EST 2011


    [ https://issues.jboss.org/browse/ISPN-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586258#comment-12586258 ] 

Olaf Bergner edited comment on ISPN-961 at 3/7/11 4:29 AM:
-----------------------------------------------------------

I published a first attempt at implementing such a provider at https://github.com/obergner/spring-infinispan. Right now, it concentrates on supporting the embedded use case, i.e. when client and Infinispan are colocated within the same JVM. Supporting the hot-rod client for remotely accessing caches has been deferred.

Current state of affairs:

 * Created an implementation of {{org.springframework.cache.Cache}}, backed by {{org.infinispan.Cache}}.
 * Created an implementation of {{org.springframework.cache.CacheManager}}, backed by {{org.infinispan.manager.CacheContainer}}.
 * Implemented a Spring {{FactoryBean}} for creating instances of {{org.infinispan.Cache}}.
 * Implemented a Spring {{FactoryBean}} for creating instances of {{org.infinispan.manager.EmbeddedCacheManager}}.
 * Implemented a Spring {{FactoryBean}} for creating instances of {{org.infinispan.config.Configuration}}, i.e. the default configuration to be used by an Infinispan {{CacheContainer}} when creating new {{Cache}} instances.

Known limitations:

 * CacheManager-implementation does *not* support programmatically adding new caches at runtime. The list of known caches is initialized once when being instantiated. Caches later added to the backing EmbeddedCacheManager are not visible to the Spring CacheManager.

TODO (embedded use case):

 * Implement a {{FactoryBean}} for creating instances of {{org.infinispan.config.GlobalConfiguration}}.
 * Implement a {{FactoryBean}} for creating *named* configurations, i.e. configurations to be used for *named* caches.
 * Improve code coverage.
 * Improve javadocs, especially package-level javadocs.



      was (Author: O.Bergner):
    I published a first attempt at implementing such a provider at https://github.com/obergner/spring-infinispan. Right now, it concentrates on supporting the embedded use case, i.e. when client and Infinispan are colocated within the same JVM. Supporting the hot-rod client for remotely accessing caches has been deferred.

Current state of affairs:

 * Created an implementation of org.springframework.cache.Cache, backed by org.infinispan.Cache.
 * Created an implementation of org.springframework.cache.CacheManager, backed by org.infinispan.manager.CacheContainer.
 * Implemented a Spring FactoryBean for creating instances of org.infinispan.Cache.
 * Implemented a Spring FactoryBean for creating instances of org.infinispan.manager.EmbeddedCacheManager.
 * Implemented a Spring FactoryBean for creating instances of org.infinispan.config.Configuration, i.e. the default configuration to be used by an Infinispan CacheContainer when creating new Cache instances.

Known limitations:

 * CacheManager-implementation does *not* support programmatically adding new caches at runtime. The list of known caches is initialized once when being instantiated. Caches later added to the backing EmbeddedCacheManager are not visible to the Spring CacheManager.

TODO (embedded use case):

 * Implement a FactoryBean for creating instances of org.infinispan.config.GlobalConfiguration.
 * Implement a FactoryBean for creating *named* configurations, i.e. configurations to be used for *named* caches.
 * Improve code coverage.
 * Improve javadocs, especially package-level javadocs.


  
> Implement a provider for Spring's Cache Abstraction
> ---------------------------------------------------
>
>                 Key: ISPN-961
>                 URL: https://issues.jboss.org/browse/ISPN-961
>             Project: Infinispan
>          Issue Type: Feature Request
>            Reporter: Sanne Grinovero
>            Assignee: Manik Surtani
>
> As described on http://blog.springsource.com/2011/02/23/spring-3-1-m1-caching/ , Spring is now providing some integration helpers to a caching interface; it seems easy to implement.
> there are many possible issues using this the wrong way, we should especially warn about not caching JPA entities this way.
> See topic "Spring Cache Abstraction " here: http://lists.jboss.org/pipermail/hibernate-dev/2011-February/thread.html#6016

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list