File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,9 @@ type Driver struct {
202
202
// a map storing all volumes created by this driver <volumeName, accountName>
203
203
volMap sync.Map
204
204
// a timed cache storing all volumeIDs and storage accounts that are using data plane API
205
- dataPlaneAPIVolCache * azcache.TimedCache
205
+ dataPlaneAPIVolCache azcache.Resource
206
206
// a timed cache storing account search history (solve account list throttling issue)
207
- accountSearchCache * azcache.TimedCache
207
+ accountSearchCache azcache.Resource
208
208
}
209
209
210
210
// NewDriver Creates a NewCSIDriver object. Assumes vendor version is equal to driver version &
@@ -236,10 +236,10 @@ func NewDriver(options *DriverOptions) *Driver {
236
236
237
237
var err error
238
238
getter := func (key string ) (interface {}, error ) { return nil , nil }
239
- if d .accountSearchCache , err = azcache .NewTimedcache (time .Minute , getter ); err != nil {
239
+ if d .accountSearchCache , err = azcache .NewTimedCache (time .Minute , getter , false ); err != nil {
240
240
klog .Fatalf ("%v" , err )
241
241
}
242
- if d .dataPlaneAPIVolCache , err = azcache .NewTimedcache (10 * time .Minute , getter ); err != nil {
242
+ if d .dataPlaneAPIVolCache , err = azcache .NewTimedCache (10 * time .Minute , getter , false ); err != nil {
243
243
klog .Fatalf ("%v" , err )
244
244
}
245
245
return & d
You can’t perform that action at this time.
0 commit comments