From 339346e3071ffd157c15c4bf4b5bbfcb6a61625d Mon Sep 17 00:00:00 2001 From: Edward Price Date: Mon, 5 Aug 2013 00:47:37 -0500 Subject: [PATCH] Added Items() to return items from BeeCache --- cache.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cache.go b/cache.go index 88da038d..f5e05e25 100644 --- a/cache.go +++ b/cache.go @@ -73,6 +73,11 @@ func (bc *BeeCache) Delete(name string) (ok bool, err error) { return } +// Return all of the item in a BeeCache +func (bc *BeeCache) Items() map[string]*BeeItem { + return bc.items +} + func (bc *BeeCache) IsExist(name string) bool { bc.lock.RLock() defer bc.lock.RUnlock()