FindStorageWithPolicy 根据策略ID查找存储
(policyId int64)
| 169 | |
| 170 | // FindStorageWithPolicy 根据策略ID查找存储 |
| 171 | func (this *Manager) FindStorageWithPolicy(policyId int64) StorageInterface { |
| 172 | this.locker.RLock() |
| 173 | defer this.locker.RUnlock() |
| 174 | |
| 175 | return this.storageMap[policyId] |
| 176 | } |
| 177 | |
| 178 | // NewStorageWithPolicy 根据策略获取存储对象 |
| 179 | func (this *Manager) NewStorageWithPolicy(policy *serverconfigs.HTTPCachePolicy) StorageInterface { |
no test coverage detected