Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coursier/concurrent-reference-hash-map
https://github.com/coursier/concurrent-reference-hash-map
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coursier/concurrent-reference-hash-map
- Owner: coursier
- License: apache-2.0
- Created: 2020-11-13T12:04:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T03:01:20.000Z (almost 2 years ago)
- Last Synced: 2024-03-17T16:51:28.562Z (9 months ago)
- Language: Java
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# concurrent-reference-hash-map
[![Build status](https://github.com/coursier/concurrent-reference-hash-map/workflows/CI/badge.svg)](https://github.com/coursier/concurrent-reference-hash-map/actions?query=workflow%3ACI)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.alexarchambault/concurrent-reference-hash-map.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.alexarchambault/concurrent-reference-hash-map)`ConcurrentReferenceHashMap` from [hazelcast](https://github.com/hazelcast/hazelcast/blob/bacfd050453824df221393be89b847beeec50ce0/hazelcast/src/main/java/com/hazelcast/internal/util/ConcurrentReferenceHashMap.java)
re-packaged as a single dependency-free JAR. Released under the same license
as the original hazelcast code: Apache 2.## Usage
```scala
libraryDependencies += "io.github.alexarchambault" % "concurrent-reference-hash-map" % "1.1.0"
```The latest version is [![Maven Central](https://img.shields.io/maven-central/v/io.github.alexarchambault/concurrent-reference-hash-map.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.alexarchambault/concurrent-reference-hash-map).
Use it in your code like
```scala
import concurrentrefhashmap.ConcurrentReferenceHashMap
val map = new ConcurrentReferenceHashMap[String, (Int, Int)](
16,
ConcurrentReferenceHashMap.ReferenceType.WEAK,
ConcurrentReferenceHashMap.ReferenceType.WEAK
)
```