エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
[NoSQL] Ohm (redis用のORM) の使い方 - ヽ( ・∀・)ノくまくまー - s21g
1 class Video < Ohm::Model 2 attribute :url 3 attribute :created_at 4 set :tags 5 6 index :u... 1 class Video < Ohm::Model 2 attribute :url 3 attribute :created_at 4 set :tags 5 6 index :url # 検索対象には全てindexを作成する 7 index :tags # 検索対象には全てindexを作成する 8 end pkeyのidが勝手に定義される redisで利用可能なvalueの型は、文字列と集合 Ohmでは文字列型を attribute で定義する Ohmでは集合型を set で定義する Ohmではさらに独自の list(順序付き集合), counter(増減のみ操作可能な数値) 型が利用可能 使用例 1 video = Video.new(:url=>"http://www.you...", :tags=>"愛理") 2 video.save 3 video.tag
2011/01/06 リンク