实现内存缓存

This commit is contained in:
刘祥超
2020-10-05 19:15:35 +08:00
parent d7493c4188
commit 78a2480836
14 changed files with 504 additions and 17 deletions

View File

@@ -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 {