()
| 107 | } |
| 108 | |
| 109 | func (this *List) Clean() { |
| 110 | this.mu.Lock() |
| 111 | this.itemsMap = map[uint64]int64{} |
| 112 | this.expireMap = map[int64]ItemMap{} |
| 113 | this.mu.Unlock() |
| 114 | } |
| 115 | |
| 116 | func (this *List) Count() int { |
| 117 | this.mu.RLock() |
no test coverage detected