codecamp

Redis 参考资料

关于发布与订阅模式的定义可以参考维基百科的 Publish Subscribe Pattern 词条: http://en.wikipedia.org/wiki/Publish-subscribe_pattern , 以及《设计模式》一书的 5.7 节。

另外, 《Pattern-Oriented Software Architecture Volume 4, A Pattern Language for Distributed Computing》 一书第 10 章《Distribution Infrastructure》关于信息、信息传递、发布与订阅等主题的讨论也非常好, 值得一看。

维基百科的 Glob 词条给出了 Glob 风格模式匹配的简介: http://en.wikipedia.org/wiki/Glob_(programming) , 具体的匹配符语法可以参考 glob(7) 手册的 Wildcard Matching 小节。

Redis 重点回顾
Redis 事务的实现
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }