jankotek / mapdb-hz-offheap Goto Github PK
View Code? Open in Web Editor NEWProvides off-heap storage for in-memory datagrid build in Turkey
Provides off-heap storage for in-memory datagrid build in Turkey
jankotek, from github we got to know that mapdb provided some integration for hazelcast off-heap support. but it's unlucky that it would only support low version of hazelcast where it changed a lot since hazelcast 3.4+. after several days working I tried to make it work but it could not pass your bench mark test. so would you mind spare sometime to give it a try to integrated with hazelcast new version. and what's more, new hazelcast has brought in new title like native memory to support offheap.
pom.xml:
<dependencies>
<dependency>
<groupId>org.mapdb</groupId>
<artifactId>mapdb</artifactId>
<version>2.0-beta6</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>3.5.1</version>
</dependency>
<!-- used to modify classes at runtime -->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.18.1-GA</version>
</dependency>
</dependencies>
Code:
Config cfg = new Config();
HazelcastInstance instance = Hazelcast.newHazelcastInstance(cfg);
Map<Long, String> mapCustomers = instance.getMap("map");
mapCustomers.put(1L, "first");
mapCustomers.put(1L, "second");
System.out.println(mapCustomers.get(1L));
Output: first
Expected: second
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.