golang-lru

Golang LRU cache

  • 所有者: hashicorp/golang-lru
  • 平台:
  • 許可證: Mozilla Public License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

golang-lru

This provides the lru package which implements a fixed-size
thread safe LRU cache. It is based on the cache in Groupcache.

Documentation

Full docs are available on Godoc

Example

Using the LRU is very simple:

l, _ := New(128)
for i := 0; i < 256; i++ {
    l.Add(i, nil)
}
if l.Len() != 128 {
    panic(fmt.Sprintf("bad len: %v", l.Len()))
}

主要指標

概覽
名稱與所有者hashicorp/golang-lru
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證Mozilla Public License 2.0
所有者活动
創建於2014-08-06 22:14:53
推送於2025-06-11 09:36:49
最后一次提交
發布數21
最新版本名稱arc/v2.0.7 (發布於 )
第一版名稱v0.5.0 (發布於 )
用户参与
星數4.7k
關注者數330
派生數517
提交數153
已啟用問題?
問題數76
打開的問題數31
拉請求數60
打開的拉請求數19
關閉的拉請求數42
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?