mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 11:50:55 +00:00
Added Items() to return items from BeeCache
This commit is contained in:
parent
4ffe988c30
commit
339346e307
5
cache.go
5
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()
|
||||
|
Loading…
Reference in New Issue
Block a user