-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from cmushroom/dev
3.0.0
- Loading branch information
Showing
91 changed files
with
4,751 additions
and
4,409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"latestVersionNum": 22, | ||
"latestVersion": "2.5.2", | ||
"latestVersionNum": 30, | ||
"latestVersion": "3.0.0", | ||
"updateType": "hint", | ||
"releaseNotes": "1. 增加字符串长度查询设置,对于超长字符通守getrange改善性能。\n2. 优化线程池关闭方式。" | ||
"releaseNotes": "1. 升级TCA,使用Reducer重写store 部分。\n2. 增加快速分页模式, 在查询结果数据量较大情况时,优化查询性能。" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# 问题记录 | ||
|
||
1. tca 监听不存在的属值时, 会造成编译卡死, swift-frontend 内存泄漏 | ||
|
||
## TCA | ||
1. tca 监听不存在的属性值时, 会造成编译卡死, swift-frontend 内存泄漏 | ||
2. 同一个reducer被注入多次时, action方法会被多次调用,例如: | ||
``` | ||
Scope(state: \.redisKeysState, action: /Action.redisKeysAction) { | ||
RedisKeysStore(redisInstanceModel: redisInstanceModel) | ||
} | ||
Scope(state: \.redisKeysState, action: /Action.redisKeysAction) { | ||
RedisKeysStore(redisInstanceModel: redisInstanceModel) | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// AppContextStoreTests.swift | ||
// Tests | ||
// | ||
// Created by chengpan on 2023/8/5. | ||
// | ||
|
||
@testable import redis_pro | ||
import Foundation | ||
import XCTest | ||
import ComposableArchitecture | ||
|
||
@MainActor | ||
class AppContextStoreTests: StoreBaseTests { | ||
func testShow() async { | ||
let store = TestStore(initialState: AppContextStore.State()) { | ||
AppContextStore() | ||
} withDependencies: { | ||
$0.redisInstance = redisInstance | ||
$0.redisClient = redisClient | ||
} | ||
|
||
await store.send(.show) { | ||
$0.loading = true | ||
$0.loadingCount = 1 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// AppStoreTest.swift | ||
// Tests | ||
// | ||
// Created by chengpan on 2023/8/5. | ||
// | ||
|
||
@testable import redis_pro | ||
import Foundation | ||
import XCTest | ||
import ComposableArchitecture | ||
|
||
@MainActor | ||
class KeysDelStoreTests: StoreBaseTests { | ||
func testBasics() async { | ||
let store = TestStore(initialState: KeysDelStore.State()) { | ||
KeysDelStore() | ||
} withDependencies: { | ||
$0.redisInstance = redisInstance | ||
$0.redisClient = redisClient | ||
} | ||
|
||
// await store.send(.favoriteAction(.connectSuccess(self.redisModel))) { | ||
// $0.isConnect = true | ||
// } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// StoreBaseTests.swift | ||
// Tests | ||
// | ||
// Created by chengpan on 2023/8/5. | ||
// | ||
|
||
@testable import redis_pro | ||
import Foundation | ||
import Logging | ||
import XCTest | ||
import ComposableArchitecture | ||
|
||
|
||
class StoreBaseTests: RedisClientBaseTest { | ||
var redisInstance: RedisInstanceModel! | ||
|
||
override func setUp() { | ||
super.setUp() | ||
self.redisInstance = RedisInstanceModel(redisModel: redisModel) | ||
logger.info("StoreBaseTests setup...") | ||
} | ||
|
||
|
||
func testExample() { | ||
logger.info("test example ...") | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+94.3 KB
(110%)
...deproj/project.xcworkspace/xcuserdata/chengpan.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Oops, something went wrong.