Debian Codegraph @

debian/control

raw
1 Source: golang-github-bep-lazycache
2 Section: golang
3 Maintainer: Debian Go Packaging Team <[email protected]>
4 Uploaders: Anthony Fok <[email protected]>
5 Build-Depends: debhelper-compat (= 13),
6 dh-sequence-golang,
7 golang-any,
8 golang-github-frankban-quicktest-dev (>= 1.14.2),
9 golang-github-hashicorp-golang-lru-v2-dev (>= 2.0.7)
10 Testsuite: autopkgtest-pkg-go
11 Standards-Version: 4.7.4
12 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-bep-lazycache
13 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-bep-lazycache.git
14 Homepage: https://github.com/bep/lazycache
15 XS-Go-Import-Path: github.com/bep/lazycache
16
17 Package: golang-github-bep-lazycache-dev
18 Architecture: all
19 Multi-Arch: foreign
20 Depends: golang-github-frankban-quicktest-dev (>= 1.14.2),
21 golang-github-hashicorp-golang-lru-v2-dev (>= 2.0.7),
22 ${misc:Depends}
23 Description: Thread-safe in-memory LRU cache with non-blocking cache priming on cache misses
24 Lazycache is a simple thread-safe in-memory LRU cache. Under the hood
25 it leverages the great simpleru package in golang-lru, with its exellent
26 performance. One big difference between golang-lru and this library is
27 the GetOrCreate method, which provides:
28 .
29 * Non-blocking cache priming on cache misses.
30 * A guarantee that the prime function is only called once for a given key.
31 * The cache's RWMutex is not locked during the execution of the prime
32 function, which should make it easier to reason about potential deadlocks.
33 .
34 Other notable features:
35 .
36 * The API is generic
37 * The cache can be resized while running.
38 * When the number of entries overflows the defined cache size, the
39 least recently used item gets discarded (LRU).