Skip to content

Commit

Permalink
README.md refactoring, fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosEngine committed Jul 24, 2024
1 parent 85c245e commit b1d76c9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ Basing on https://learn.microsoft.com/en-us/aspnet/core/performance/caching/dist

### Distributed MySQL Server Cache

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.
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.

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`):
CLI tool (globally) can be done with
```
dotnet tool install --global Pomelo.Extensions.Caching.MySqlConfig.Tools
```

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`):

```dotnetcli
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"
Expand Down

0 comments on commit b1d76c9

Please sign in to comment.