Engincan VESKE
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
0 deletions
-
docs/en/Distributed-Locking.md
-
docs/zh-Hans/Distributed-Locking.md
|
|
|
@ -109,10 +109,12 @@ namespace AbpDemo |
|
|
|
|
|
|
|
**Example: Set the distributed lock key prefix for the application** |
|
|
|
|
|
|
|
```csharp |
|
|
|
Configure<AbpDistributedLockOptions>(options => |
|
|
|
{ |
|
|
|
options.KeyPrefix = "MyApp1"; |
|
|
|
}); |
|
|
|
``` |
|
|
|
|
|
|
|
> Write that code inside the `ConfigureServices` method of your [module class](Module-Development-Basics.md). |
|
|
|
|
|
|
|
|
|
|
|
@ -109,10 +109,12 @@ namespace AbpDemo |
|
|
|
|
|
|
|
**示例: 设置应用程序的分布式锁Key前缀** |
|
|
|
|
|
|
|
```csharp |
|
|
|
Configure<AbpDistributedLockOptions>(options => |
|
|
|
{ |
|
|
|
options.KeyPrefix = "MyApp1"; |
|
|
|
}); |
|
|
|
``` |
|
|
|
|
|
|
|
> 在你的[模块类](Module-Development-Basics.md)中的 `ConfigureServices` 方法进行配置. |
|
|
|
|
|
|
|
|