toutes les options
trixie  ] [  sid  ]
[ Paquet source : golang-github-bep-lazycache  ]

Paquet : golang-github-bep-lazycache-dev (0.4.0-1)

Liens pour golang-github-bep-lazycache-dev

Screenshot

Ressources Debian :

Télécharger le paquet source golang-github-bep-lazycache :

Responsables :

Ressources externes :

Paquets similaires :

Thread-safe in-memory LRU cache with non-blocking cache priming on cache misses

Lazycache is a simple thread-safe in-memory LRU cache. Under the hood it leverages the great simpleru package in golang-lru, with its exellent performance. One big difference between golang-lru and this library is the GetOrCreate method, which provides:

 * Non-blocking cache priming on cache misses.
 * A guarantee that the prime function is only called once for a given key.
 * The cache's RWMutex is not locked during the execution of the prime
   function, which should make it easier to reason about potential deadlocks.

Other notable features:

 * The API is generic
 * The cache can be resized while running.
 * When the number of entries overflows the defined cache size, the
   least recently used item gets discarded (LRU).

Autres paquets associés à golang-github-bep-lazycache-dev

  • dépendances
  • recommandations
  • suggestions
  • enhances

Télécharger golang-github-bep-lazycache-dev

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 7,4 ko31,0 ko [liste des fichiers]