压缩内存缓存
有人有对缓存数据使用压缩的经验吗? 据我所知,stackoverflow内部正在使用这种方法。
优缺点都有什么?
还有什么陷阱吗?
Does anyone have any experience in using compression on their cached data?
I understand that stackoverflow is internally using this method.
What are the pros and cons?
And are there any gotchyas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Scott Hanselman 刚刚创建了一个会话包装类,可以在将项目放入缓存/会话/其他内容之前对其进行压缩。 您可能想看一下!
http://www.hanselman.com/blog/TheWeeklySourceCode35ZipcompressingASPNETSessionAndCacheState.aspx
Scott Hanselman just created a Session wrapper class that can zip items before putting them into your cache/session/whatever. You may want to take a look!
http://www.hanselman.com/blog/TheWeeklySourceCode35ZipCompressingASPNETSessionAndCacheState.aspx
你应该尝试memcached。 它是一个分布式缓存服务器,易于使用并提供令人印象深刻的压缩功能。
you should try memcached. It's a distributed caching server that is easy to use and provides impressive compression capabilities.