// Find timeout key-value pair according to the key
Find timeout key-value pair according to the key
// Find timeout key - value pair according to the key
func (q *TimeoutQueue) Find(key interface{}) (interface{}, bool) {
	q.mu.RLock()
	defer q.mu.RUnlock()
	idx, ok := q.index[key]
	if ok {
		return q.data[idx].Data, true
	}
	return nil, false
}
func ( q * TimeoutQueue ) Find ( key interface { } ) ( interface { } , bool ) { q . mu . RLock ( ) defer q . mu . RUnlock ( ) idx , ok := q . index [ key ] if ok { return q . data [ idx ] . Data , true } return nil , false }
Find timeout key-value pair according to the key
Find timeout key - value pair according to the key