aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/object.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-07-24 14:19:21 +0200
committerSantiago M. Mola <santi@mola.io>2017-07-27 14:22:40 +0200
commitae1c4f3df729c3a7fed4cd5a1f530c95d640497a (patch)
treea1468ab8a942435435c644abdc9bac3338990bc2 /storage/filesystem/object.go
parentb3fc7760ba332306bb1faa64c8a101a2e605077f (diff)
downloadgo-git-ae1c4f3df729c3a7fed4cd5a1f530c95d640497a.tar.gz
plumbing/cache: change FIFO to LRU cache
Diffstat (limited to 'storage/filesystem/object.go')
-rw-r--r--storage/filesystem/object.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go
index 4a67a00..6dd910b 100644
--- a/storage/filesystem/object.go
+++ b/storage/filesystem/object.go
@@ -29,7 +29,7 @@ type ObjectStorage struct {
func newObjectStorage(dir *dotgit.DotGit) (ObjectStorage, error) {
s := ObjectStorage{
- DeltaBaseCache: cache.NewObjectFIFO(DefaultMaxDeltaBaseCacheSize),
+ DeltaBaseCache: cache.NewObjectLRU(DefaultMaxDeltaBaseCacheSize),
dir: dir,
}