Home > Database > Mysql Tutorial > 把redis放在DATA层,作为一种数据源,我认为更合理,也更符合我的面向对象原则

把redis放在DATA层,作为一种数据源,我认为更合理,也更符合我的面向对象原则

WBOY
Release: 2016-06-07 17:56:27
Original
961 people have browsed it

一 一个Repository数据库操作基类,提供了通用的操作属性和方法 1 namespace Data 2 { RepositoryBase 4 { RedisClient_SortedSet redisClient = new RedisClient_SortedSet(); DataClasses1DataContext db = new DataClasses1DataContext(); 7 } 8 }

一 一个Repository数据库操作基类,香港服务器租用,虚拟主机,提供了通用的操作属性和方法

1 namespace Data 2 { RepositoryBase 4 { RedisClient_SortedSet redisClient = new RedisClient_SortedSet(); DataClasses1DataContext db = new DataClasses1DataContext(); 7 } 8 } ,美国服务器

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template