Skip to content

Commit b1d76c9

Browse files
committed
README.md refactoring, fixes #117
1 parent 85c245e commit b1d76c9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ Basing on https://learn.microsoft.com/en-us/aspnet/core/performance/caching/dist
66

77
### Distributed MySQL Server Cache
88

9-
The Distributed MySQL Server Cache implementation (**AddDistributedMySqlCache**) allows the distributed cache to use a MySQL Server database as its backing store. To create a MySQL Server cached item table in a MySQL Server instance, you can use the `dotnet-mysql-cache` tool. The tool creates a table with the name and schema that you specify.
9+
The Distributed MySQL Server Cache implementation (**AddDistributedMySqlCache**) allows the distributed cache to use a MySQL Server database as its backing store. To create a MySQL Server cached item table in a MySQL Server instance, you can use the [dotnet-mysql-cache](https://www.nuget.org/packages/Pomelo.Extensions.Caching.MySqlConfig.Tools) tool. The tool creates a table with the name and schema that you specify.
1010

11-
Create a table in MySQL Server by running the `dotnet mysql-cache create` command. Provide the MySQL Server connection string, instance (for example `server=192.169.0.1`), table name (for example, `NewTableName`) and optional database (for example, `MyDatabaseName`):
11+
CLI tool (globally) can be done with
12+
```
13+
dotnet tool install --global Pomelo.Extensions.Caching.MySqlConfig.Tools
14+
```
15+
16+
Now, create a table in MySQL Server by running the `dotnet mysql-cache create` command. Provide the MySQL Server connection string, instance (for example `server=192.169.0.1`), table name (for example, `NewTableName`) and optional database (for example, `MyDatabaseName`):
1217

1318
```dotnetcli
1419
dotnet mysql-cache create "server=192.169.0.1;user id=userName;password=P4ssword123!;port=3306;database=MyDatabaseName;Allow User Variables=True" "NewTableName" --databaseName "MyDatabaseName"

0 commit comments

Comments
 (0)