なるほど https://github.com/guilleiguaran/fakeredis/blob/master/README.md
Ruby でやってみる『機械学習 はじめよう第3回 ベイジアンフィルタを実装してみよう』メモ - 牌語備忘録 -pygo http://cortyuming.hateblo.jp/entry/20140627/p2
$ heroku pg:info DATABASE
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 8/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 43.3 MB
Tables: 26
Rows: 46869/10000000 (In compliance)
Max response time seems to be better than nominal. Why?
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ cd ~/.rbenv && src/configure && make -C src
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
$ tail -2 .bashrc
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
$ rbenv install 2.4.1
そこから
BUILD FAILED (Ubuntu 17.04 using ruby-build 20170405-4-g365dd1f)
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libreadline-dev` to fetch missing dependencies.
あー
Redisのコネクションプールの使い方を知らないといけないことに気づいたところでそろそろ時間切れ (Rubyはまだコンパイル中w)
Using Sidekiq's Redis Connections in Other Places
http://blog.dylangriff.in/2013/09/28/using-sidekiqs-redis-connections-in-other-places/
Map Redis types directly to Ruby objects
This instance has about 1GB of media files on S3 after running for about 2 weeks.
$ heroku pg:info DATABASE
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 8/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 44.1 MB
Tables: 26
Rows: 48877/10000000 (In compliance)