Versions in this module Expand all Collapse all v5 v5.4.4 Jun 22, 2021 Changes in this version + type Buffer interface + Clear func() + Get func(key int64) ([]byte, bool) + Put func(key int64, slice []byte) + type BufferLRU struct + MaxSize FileSize + func NewBufferLRU(maxSize FileSize) *BufferLRU + func NewBufferLRUDefault() *BufferLRU + func (c *BufferLRU) Clear() + func (c *BufferLRU) Get(key int64) ([]byte, bool) + func (c *BufferLRU) Put(key int64, slice []byte) + type FileSize int64 + const Byte + const DefaultMaxSize + const GiByte + const KiByte + const MiByte + type Object interface + Clear func() + Get func(k plumbing.Hash) (plumbing.EncodedObject, bool) + Put func(o plumbing.EncodedObject) + type ObjectLRU struct + MaxSize FileSize + func NewObjectLRU(maxSize FileSize) *ObjectLRU + func NewObjectLRUDefault() *ObjectLRU + func (c *ObjectLRU) Clear() + func (c *ObjectLRU) Get(k plumbing.Hash) (plumbing.EncodedObject, bool) + func (c *ObjectLRU) Put(obj plumbing.EncodedObject) Other modules containing this package github.com/naoredri/go-git