(key string)
| 647 | } |
| 648 | |
| 649 | func (this *MemoryStorage) deleteWithoutLocker(key string) error { |
| 650 | hash := this.hash(key) |
| 651 | delete(this.valuesMap, hash) |
| 652 | _ = this.list.Remove(types.String(hash)) |
| 653 | return nil |
| 654 | } |
| 655 | |
| 656 | func (this *MemoryStorage) initPurgeTicker() { |
| 657 | var autoPurgeInterval = this.policy.MemoryAutoPurgeInterval |