mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-10 20:10:24 +08:00
实现内存缓存
This commit is contained in:
@@ -430,7 +430,7 @@ func (this *APIStream) cacheStorage(message *pb.NodeStreamMessage, cachePolicyJS
|
||||
storage = caches.SharedManager.NewStorageWithPolicy(cachePolicy)
|
||||
if storage == nil {
|
||||
this.replyFail(message.RequestId, "invalid storage type '"+cachePolicy.Type+"'")
|
||||
return nil, false, err
|
||||
return nil, false, errors.New("invalid storage type '" + cachePolicy.Type + "'")
|
||||
}
|
||||
err = storage.Init()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user