Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddIfNotExist (0.22 sec)

  1. pkg/controller/volume/persistentvolume/metrics/metrics.go

    		cache: sync.Map{}, // [string]operationTimestamp {}
    	}
    }
    
    // AddIfNotExist returns directly if there exists an entry with the key. Otherwise, it
    // creates a new operation timestamp using operationName, pluginName, and current timestamp
    // and stores the operation timestamp with the key
    func (c *OperationStartTimeCache) AddIfNotExist(key, pluginName, operationName string) {
    	ts := newOperationTimestamp(pluginName, operationName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 25 13:09:16 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top