func (c *ShaCache) Add(id git.Oid, shasum string) bool {
	return c.lru.Add(id, shasum)
}
Add populates the cache with the given Git object id.
package storage
import (
	"github.com/hashicorp/golang-lru"
	"github.com/libgit2/git2go"
)
type ShaCache struct {
	lru *lru.Cache
}
func NewShaCache(size int) (*ShaCache, error) {
	lru, err := lru.New(size)
	if err != nil {
		return nil, err
	}
	return &ShaCache{lru}, nil
}