Last active
June 8, 2021 21:28
-
-
Save manoj-choudhari-git/8120c8408456cba3d5338c9f3ab8c583 to your computer and use it in GitHub Desktop.
.NET Core Web API - Distributed SQL Server Cache
This file contains hidden or 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
## Install DOTNET-SQL-CACHE tools globally so that we can run next command | |
dotnet tool install --global dotnet-sql-cache | |
## Run DOTNET CLI command | |
## parameters are - connection string, schema name and table name - in that order | |
## This command just creates tables and indexes. It does not create database | |
## Database specified in connection string should already be created. | |
dotnet sql-cache create | |
"Data Source=.;Initial Catalog=MyCacheDb;Integrated Security=True;" dbo CacheStore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment