Lind.DDD.Repositories.Redis Layer Introduction

Source: Internet
Author: User

Back to Catalog

It's been happening before.

The older uncle introduced the article on Redis, with caches, queues, distributed pub/sub, data set caches, and the implementation of warehousing Redis, and so on, and today in LIND.DDD's persistence component, Redis certainly has a place as the most red Key/value storage mechanism in the world today. , it plays a irreplaceable role in the NoSQL camp!

Here is a list of Redis article series, you can refer to the table of contents

Redis Learning Note ~redis installation in a Windows environment

Redis Learning note ~redis application in. Net

Five data structures provided by Redis Learning Note ~redis

Redis Learning Notes ~ Test of five Big data results

Redis Learning Notes ~ Enabling Message Queuing to be more convenient than MSMQ

Redis Learning Note-placing Redis on the data layer as a data source, I think more reasonable and more consistent with my object-oriented principle

Redis Learning Notes ~ It's time to implement a warehousing for Redis, redisrepository.

Redis Learning note ~redis implements multiple cache servers, read/write separation

Redis Learning note ~redis Transaction mechanism and implementation of LIND.DDD.REPOSITORIES.REDIS transaction mechanism

Redis Learning Note ~redis concurrency lock mechanism

Storage module in LIND.DDD, MongoDB has a place

Uncle's REDIS storage structure

Uncle in the Redis storage design, using the Redis transaction mechanism to maintain data consistency, this transaction requires that they belong to the same Redis connection object, so, in the Setdatacontext method implemented this business logic

         Public voidSetdatacontext (Objectdb) {            Try            {                //manual Redis database objects, enabling on Redis transactionsRedisdb =(iredisclient) DB; Redistypedclient= redisdb.gettypedclient<tentity>(); Table= redistypedclient.lists[typeof(TEntity).            Name]; }            Catch(Exception) {Throw NewArgumentException ("Redis. Setdatacontext Required db for iredisclient type"); }        }

Let the code to change our lives, change our world!

Back to Catalog

Lind.DDD.Repositories.Redis Layer Introduction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.