memcache 的Ruby客户端比较常用的是(DalliCache)[https://github.com/mperham/dalli]。 连接池项目(connection_pool)[https://github.com/mperham/connection_pool]。
在ruby中redis客户端在log上的使用
如何跟进ruby项目中redis使用的时间开销?
方法:google ruby redis logger/github redis logger, 进而找到了好一些demo可用,然后从我实际测试来看,有以下两个gem还不错,目前在我们的线上环境使用。 Gemfile添加
gem sidekiq-redis-logger
gem ‘redis_logger’, :git => “git://github.com/hellolucky/redis_logger.git”
我和jekyll、github的悲惨幸福故事
苹果推送异常处理
异常"Received fatal alert: certificate_unknown”
从网络上搜索此异常,给出最多的解答是证书导出不正确。根据说明的步骤和方法再次导出后,我分别使用IntelliJ idea和Eclipse开发工具进行iOS push的时候,程序一直报错
Received fatal alert: certificate_unknown
不能不解决这个问题,所以继续google,不经意间查看到导出的p12文件跟我们的Java环境有关系。所以我把JDK7替换到了JDK6,然后继续在IntelliJ idea和Eclipse上运行,Eclipse这次居然能正确运行了,但是IntelliJ idea还是不能运行。
MacBookPro自动切换网络和代理
##背景1 在公司网络是使用dhcp分配的,但是经常要变更IP,所以我自己就使用网络偏好设置,更改为(使用dhcp-手动设定地址),保证我的I
mac安装cocoapods不成功解决办法
cocoapods的安装办法,请参见cocoapods官网 sudo gem install cocoapods 如果我们安装失败,并提示ruby 1.9.3 类似的错误,那应该就是最新版的cocoa
[Ruby]gemfile.lock文件引发的困惑
Gemfile.lock的英文说明: When you run bundle install, Bundler will persist the full names and versions of all gems that you used (including dependencies of the gems specified in the Gemfile(5)) into a file called Gemfile.lock. Bundler uses this file in all subsequent calls to bundle install, which guarantees that you always use the same
fastjson加载读取json文件
Java的json解析库(fastjson), 出品于阿里牛人@温高铁。 今天的重点是fastjson读取json文件。 参考链接:Stream-
redis在Ruby上客户端使用疑云
ruby中使用redis客户端 首先在Gemfile里面添加 gem ‘hiredis’ gem ‘redis’ 然后在主目录下的application.rb文件里面添加 case ENV[“RACK_ENV”] when “production” REDIS = Redis.new(:driver => :hiredis,
手机应用版本比较(Java&Ruby)
###手机应用应用版本比较(Java)###