Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ApOption (0.07 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    }
    
    type clientRecorder struct {
    	reads uint64
    	clientv3.KV
    }
    
    func (r *clientRecorder) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) {
    	atomic.AddUint64(&r.reads, 1)
    	return r.KV.Get(ctx, key, opts...)
    }
    
    func (r *clientRecorder) GetReadsAndReset() uint64 {
    	return atomic.SwapUint64(&r.reads, 0)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top