(currentTime int64)
| 116 | } |
| 117 | |
| 118 | func (this *Item[T]) IsExpired(currentTime int64) bool { |
| 119 | return this.lastUpdateTime < currentTime-this.lifeSeconds-this.spanSeconds |
| 120 | } |
| 121 | |
| 122 | func (this *Item[T]) calculateSpanIndex(timestamp int64) int { |
| 123 | var index = int(timestamp % this.lifeSeconds / this.spanSeconds) |
no outgoing calls