[infinispan-dev] Cache creation over Hot Rod / REST

Tristan Tarrant ttarrant at redhat.com
Tue Sep 13 08:18:27 EDT 2016


On 13/09/16 13:42, Sanne Grinovero wrote:
> Thanks Tristan, that's a very welcome feature!
>
> Regarding the suggested API:
>   - RemoteCache RemoteCacheManager.createCache(String cacheName, String
> configurationName, boolean temporary)
>
> I like the basic idea, I'm not sold on the "temporary" boolean.
> I think it might be confusing as it's not clear that the
> "temporaneousity" refers to the configuration change being persisted
> or not, rather than introducing some notion of a "temporary cache";
> for example I might expect the Cache to be destroyed when my client
> disconnects.
Yes, I agree. Something which would be impossible to enforce anyway :)
> Maybe simply change the argument name to "persistInConfiguration" |
> "modifyConfigurationfiles" | .. ?
I like "persistInConfiguration".
> I wouldn't mind to see this feature materialize in a simpler form
> which simply doesn't expose the capability to modify configuration
> files at all.
>
> So you could consider a:
>   - RemoteCache RemoteCacheManager.createCache(String cacheName, String
> baseConfigurationName);
Yes, that needs to be there.
> More importantly, I'd like to see a symmetrical method to destroy the
> created caches; particularly useful for execution of integration
> tests.
Yep.

Tristan

>
> Thanks,
> Sanne
>
>
> On 13 September 2016 at 11:49, Tristan Tarrant <ttarrant at redhat.com> wrote:
>> Hi guys,
>>
>> I have put together a wiki page describing how cache creation over
>> remote protocols should be implemented.
>>
>> https://github.com/infinispan/infinispan/wiki/Create-Cache-over-HotRod
>>
>> Comments are welcome
>>
>> Tristan
>> --
>> Tristan Tarrant
>> Infinispan Lead
>> JBoss, a division of Red Hat
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>



More information about the infinispan-dev mailing list