Dear all,<br><br>I am new here and I (would like to) bring gifts :)<br><br>First of all thanks for the great work you have been doing on Infinispan. I was introduced to Infinispan by Sanne, with whom I have collaborated in the past (hi Sanne!).<br>
<br>Over the last few days I have been writing a CacheStore implementation for Apache Cassandra, but I have a few unanswered questions I would like to submit to you before I proceed.<br><br>I have written my code by taking inspiration from other CacheStore providers, namely the JDBM and Hibernate stores.<br>
<br>I hash the key of an entry to produce an appropriate key for Cassandra. I then store the marshalled value in a Column named &quot;entry&quot; within a ColumnFamily named &quot;Infinispan&quot;. If the entry has an expiration I create another Column within the &quot;Infinispan&quot; ColumnFamily using the following pattern: &quot;expiration&quot;+&quot;0paddedtimestamp&quot; containg a placeholder value.<br>
When purgeInternal is invoked I delete all rows which have a column in the range &quot;Infinispan:expiration0000000000000000&quot; to &quot;Infinispan:expiration0paddednowtimestamp&quot;.<br>I have noticed that the JDBM CacheStore keeps expiration entries in an internal LinkedHashMap: is that just for performance reasons ?<br>
Also, Cassandra doesn&#39;t support transactional operations, but merely batched operations: within the applyModifications() method I just send all operations in one batch invocation. Is this ok ? I guess that Infinispan manages the transactional side of things.<br>
<br>I am currently developing in my own private Subversion repository and using my own package name and Junit+mockito in place of testng+easymock. Would such an object be worthy of potential inclusion within Infinispan itself (and so should I refactor everything around the org.infinispan package and integrate nicely with the rest of the tree?). Should I submit a patch to the current Infinispan trunk ?<br>
<br>Thanks in advance<br><br>Tristan<br>