File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3820,6 +3820,7 @@ saveToLocalStorage(
38203820 settings :{
38213821 uid: string ;
38223822 password ?: string ;
3823+ maxThreads ?: number ;
38233824 indices ?: number [];
38243825 }
38253826): Promise < string []> ;
@@ -3831,6 +3832,7 @@ saveToLocalStorage(
38313832
38323833- ` uid ` : Specify the storage folder to save the images cache.
38333834- ` password ` : The password of the specified storage folder.
3835+ - ` maxThreads ` : The maximum number of threads used for saving. You can set this to improve the speed. The default value is 1.
38343836- ` indices ` : Specify the indices to save.
38353837 - If not set, means all images in buffer.
38363838 - If set to ` [] ` , all cache in the specified storage folder will be clear.
@@ -3887,6 +3889,7 @@ loadFromLocalStorage (
38873889 settings :{
38883890 uid: string ;
38893891 password ?: string ;
3892+ maxThreads ?: number ;
38903893 }
38913894): Promise < {oriImageId : string , newImageId : string }[]> ;
38923895```
@@ -3897,6 +3900,7 @@ loadFromLocalStorage (
38973900
38983901- ` uid ` : Specify the storage folder to load the images.
38993902- ` password ` : The password of the specified storage folder.
3903+ - ` maxThreads ` : The maximum number of threads used for loading. You can set this to improve the speed. The default value is 1.
39003904
39013905** Return value**
39023906
You can’t perform that action at this time.
0 commit comments