An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/artyom/netlock

Package netlock provides simple mutex-like primitive that uses Redis server to coordinate. It implements the algorithm described at https://redis.io/commands/set#patterns Caller tries to set unique key with given TTL (upper estimate of time to hold the mutex), if it succeeds, it can proceed with its work using context to check whether TTL expired and cancel function to both cancel the context and release the lock.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/artyom/netlock
License: MIT
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/artyom
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...