Registry / utility / ohc-core

ohc-core

JSON →
library0.7.4javamavenunverified

Off-Heap concurrent hash map intended to store gigabytes of serialized data.

<dependency> <groupId>org.caffinitas.ohc</groupId> <artifactId>ohc-core</artifactId> <version>0.7.4</version> </dependency>
INSTALL
IMPORT
SIG · OHC-CORE
O
ohc-core
utilityjavav0.7.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OHCache
org.caffinitas.ohc.OHCache

Creates an off-heap cache and performs a put/get operation.

import org.caffinitas.ohc.OHCache; import org.caffinitas.ohc.OHCacheBuilder; public class Main { public static void main(String[] args) { OHCache<Integer, String> cache = OHCacheBuilder.newBuilder() .keySerializer((k) -> k.toString().getBytes()) .valueSerializer((v) -> v.getBytes()) .build(); cache.put(1, "value"); System.out.println(cache.get(1)); } }
Debug
Known issues
gotchaSerializers must be provided for keys and values; default serializers are not available.
fix
Implement custom serializers for your key and value types.
affects: all
Upgrade
Version history
0.7.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ohc-core — mvn dependency:get ohc-core · libregistry