惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - Michael.li

excel中使用sum函数计算包含小数列,结果出现多位小数值 使用 SqlBulkCopy 向 destinationTableName 表插入数据 使用Wireshark抓包QQ聊天用户IP地址 MSSQL数据库设计心得 Html5大文件断点续传 Web网站架构设计 extjs中的tabpanle下的combobox提交问题 Asp.net下from认证统一认证配置 Extjs 4.07 对类型定义引发的匹配问题 Supesoft权限管理系统(FrameWork) 1.0.9 Release 手机6120C 玩仙剑dos版 ASP.NET权限管理系统(FrameWork) 1.0.8 Release ASP.NET权限管理系统(FrameWork) 1.0.7 Release 关于在Page_Load定义外部变量输出 - Michael.li - 博客园 广告统计分析系统(ADCount) 1.0.0 Beta DDBuildTools 1.3.0 Release发布 ASP.NET权限管理系统(FrameWork) 1.0.6 Release remoting缓存设计总结 - Michael.li - 博客园 ASP.NET权限管理系统(FrameWork) 1.0.5 Release
c# 使用protobuf格式操作 Redis
Michael.li · 2014-02-14 · via 博客园 - Michael.li

protobuf格式介绍

1.protobuf为goole定义的类似于json的数据格式。
2.最终都需要序列化为二进制形式进行传输存储。
3.相对于xml,json格式来说,序列化为二进制后占用空间更小。
protobuf格式就我个人来说最大好处来说就是数据占用空间小,减少数据传输时间。应用与缓存服务器(memcached,redis)上,相对于其它格式数据来说可以减小内存的占用。
详细介绍请参考:http://code.google.com/p/protobuf

linux 安装redis

http://blog.csdn.net/liuxingyu_21/article/details/16116561

.proto格式转换为c#

.proto文件为proto格式的定义文件,其它语言使用需要将其转为各自语言的定义。

1.使用 protobuf-net 将.proto格式文件转为.net实体类.
2.从http://code.google.com/p/protobuf-net/ 下载protobuf-net。
3.运行protogen.exe,将.proto格式转为cs文件类。

使用c#类库(Beetle.Redis)操作 redis

1.Beetle.Redis是一款开源的Redis Client for .net组件,同时提供json和protobuf的数据格式支持。
2.Beetle.Redis对protobuf序列化是通过protobuf-net来实现,对json通过Newtonsoft.Json来实现。
3.使用说明 http://www.ikende.com/Product/Redis
4.源码 https://beetleredis.codeplex.com/

附测试程序下载