1 Reply Latest reply on Feb 7, 2014 9:29 AM by mircea.markus

    Infinispan, Clustering EmbeddedCache, How to do versioned operations?

    dinoop.p1

      1. When using Embedded Cache in clustered mode , how to do versioned operations ? Or is there any equivalent method?

      2. Can we cluster a Hot road server with Embedded cache? In this case how to do a versioned update?

       

      Thanks in advance.

        • 1. Re: Infinispan, Clustering EmbeddedCache, How to do versioned operations?
          mircea.markus

          1. When using Embedded Cache in clustered mode , how to do versioned operations ? Or is there any equivalent method?

          you could use conditional operations:

          cache.put(k,expectedValue, newValue)

          cache.remove(k, expectedValue)

          cache.putIfAbsent(...)

          cache.replace(k, expectedValue, newValue)

          2. Can we cluster a Hot road server with Embedded cache? In this case how to do a versioned update?

          A hotrod server is just a layer on top of an embedded cache instance, that opens a socket, receives remote requests and forwards them to the embedded node. You can/should have a server instance collocated (same JVM) with an embedded instance.