initial work on tracking cache by item size

This commit is contained in:
Karl Seguin
2014-11-21 14:39:25 +07:00
parent 44cdb043d1
commit ff8727e847
7 changed files with 50 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
package ccache
type Configuration struct {
maxItems uint64
maxItems int64
buckets int
itemsToPrune int
deleteBuffer int
@@ -27,7 +27,7 @@ func Configure() *Configuration {
// The max number of items to store in the cache
// [5000]
func (c *Configuration) MaxItems(max uint64) *Configuration {
func (c *Configuration) MaxItems(max int64) *Configuration {
c.maxItems = max
return c
}