Skip to content

Instantly share code, notes, and snippets.

@riferrei
Created July 28, 2011 05:42
Show Gist options
  • Save riferrei/1111031 to your computer and use it in GitHub Desktop.
Save riferrei/1111031 to your computer and use it in GitHub Desktop.
package com.oracle.coherence.demo;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
public class InserirClienteUsandoCoherence {
public static void main(String[] args) {
NamedCache clientes = CacheFactory.getCache("clientes");
Cliente cliente = new Cliente("123.456.789-90", "Ricardo Ferreira");
clientes.put(cliente.getCpf(), cliente);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment