Skip to content

Instantly share code, notes, and snippets.

@karussell
karussell / Lettuce.java
Last active February 24, 2021 16:27 — forked from eransharv/RedissonSSL.java
java lettuce redis client example using SSL
client.setOptions(ClientOptions.builder().sslOptions(SslOptions.builder()
.keystore(new File("user.p12"), "test12".toCharArray())
.truststore(new File("keystore.jks"), "keystorepassword12")
.build()).build());
@karussell
karussell / OffheapUrlDataAccess.java
Created September 18, 2021 09:08 — forked from jtheuer/OffheapUrlDataAccess.java
Graphhopper offheap storage with URL loader.
import com.google.common.base.Preconditions;
import com.graphhopper.storage.DAType;
import com.graphhopper.storage.DataAccess;
import com.graphhopper.util.NotThreadSafe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import xerial.larray.LByteArray;
import xerial.larray.japi.LArrayJ;
import java.io.ByteArrayInputStream;