全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: golang-github-bep-lazycache  ]

套件:golang-github-bep-lazycache-dev(0.4.0-1)

golang-github-bep-lazycache-dev 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 golang-github-bep-lazycache

維護小組:

外部的資源:

相似套件:

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).

其他與 golang-github-bep-lazycache-dev 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 golang-github-bep-lazycache-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 7。4 kB31。0 kB [檔案列表]