alighodrati / DistributedCacheSample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a table in SQL Server by running the sql-cache create command. Provide the SQL Server instance (Data Source), database (Initial Catalog), schema (for example, dbo), and table name (for example, TestCache):

dotnet sql-cache create "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=DistCache;Integrated Security=True;" dbo TestCache

A message is logged to indicate that the tool was successful:

Table and index were created successfully.

Benchmark result

Both Setting and Getting value with IDistributedCache.

wrk -t 12 -c 250 -d 10s
Redis Sql Memory
string byte[] string byte[] string byte[]
Requests/sec 15,619.25 13,784.19 3,274.93 3,140.92 19,353.72 13,368.91
Transfer/sec 39.55MB 34.88MB 8.29MB 7.94MB 48.66MB 33.73MB

About


Languages

Language:C# 100.0%