add Size() fn
This commit is contained in:
parent
1189f7f993
commit
818c60532e
1 changed files with 4 additions and 0 deletions
4
cache.go
4
cache.go
|
@ -59,6 +59,10 @@ func (c *Cache) ItemCount() int {
|
|||
return count
|
||||
}
|
||||
|
||||
func (c *Cache) Size() int64 {
|
||||
return c.size
|
||||
}
|
||||
|
||||
func (c *Cache) DeletePrefix(prefix string) int {
|
||||
count := 0
|
||||
for _, b := range c.buckets {
|
||||
|
|
Loading…
Reference in a new issue