2012-12-01から1ヶ月間の記事一覧

Redis各種コマンドの有効バージョン一覧

Redisの各種コマンドの使用可能バージョン一覧。 (※2012/12/30時点でのRedis最新バージョンは2.6.7)コマンド一覧) Command reference – Redis string コマンド 有効バージョン リンク APPEND 2.0.0. ※ BITCOUNT 2.6.0. ※ BITOP 2.6.0. ※ DECR 1.0.0. ※ DECRB…

monit: error connecting to the monit daemon

monit: error connecting to the monit daemon 『monit status』コマンド実行時、上記のエラーが出た場合、 Monitの設定ファイルに、以下を追加し、Monitの再起動を行う必要あり。 set httpd port 2812 allow localhost

PHPからMongoDBのAutoIncrementを使用する

MongoDBでfindAndModifyを使用したAuto Incrementの実装方法が公式サイトに載っています。Create an Auto-Incrementing Sequence FieldこれをPHPで実装する場合、以下のようになります。 Auto Increment用collectionの作成 あらかじめAuto Increment用のcoll…