GithubHelp home page GithubHelp logo

xantari / microsoft.extensions.caching.sqlserverinmemory Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 20 KB

SQL Server In Memory OLTP Table compatible version of IDistributedCache implementation

C# 100.00%

microsoft.extensions.caching.sqlserverinmemory's Introduction

Microsoft.Extensions.Caching.SqlServerInMemory

SQL Server In Memory OLTP Table compatible version of IDistributedCache implementation

Related to the following Github Issues

Add support for “in-memory tables” in Microsoft.Extensions.Caching.SqlServer

sql-cache command line is not compatible with In Memory SQL Tables

Example Table Creation SQL Script:

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CoreCache_Example]
(
	[Id] [nvarchar](449) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
	[Value] [varbinary](max) NOT NULL,
	[ExpiresAtTime] [datetime2](7) NOT NULL,
	[SlidingExpirationInSeconds] [bigint] NULL,
	[AbsoluteExpiration] [datetime2](7) NULL,

 PRIMARY KEY NONCLUSTERED HASH 
(
	[Id]
)WITH ( BUCKET_COUNT = 33554432)
)WITH ( MEMORY_OPTIMIZED = ON , DURABILITY = SCHEMA_ONLY )
GO

microsoft.extensions.caching.sqlserverinmemory's People

Contributors

xantari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

microsoft.extensions.caching.sqlserverinmemory's Issues

Locking issue

We implemented your code (than you for that) but unfortunately get the following error:

"The current transaction attempted to update a record that has been updated since this transaction started. The transaction was aborted."

at "GetCacheItem"

Did you encounter that error?
Thanks!
Tobias

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.