$ redis-server$ REDISTOGO_URL=redis://localhost:6379 rackup$ REDISTOGO_URL=redis://localhost:6379 bundle exec irb -r ./app.rbTo check Filepicker.io API response headers run:
curl -v https://www.filepicker.io/api/file/HXTmWL4VTeHL6jRERQbf?dl=false -o /dev/nullThe dl=false param is used to get files without the Content-Disposition header.
Start heroku console
$ heroku consoleRequire app.rb
require './app.rb'
# => trueList all items in songs (see also: http://redis.io/commands/lrange)
REDIS.lrange 'songs', 0, -1
# => ["https://www.filepicker.io/api/file/wcr8ycSRN2TCUtLtgySd"]Add an item to songs list (see also: http://redis.io/commands/lpush)
REDIS.lpush 'songs', 'test'
# => 2
REDIS.lrange 'songs', 0, -1
# => ["test", "https://www.filepicker.io/api/file/wcr8ycSRN2TCUtLtgySd"]Remove all occurrences of test item from songs list (see also: http://redis.io/commands/lrem)
REDIS.lrem 'songs', 0, 'test'
# => 1
REDIS.lrange 'songs', 0, -1
# => ["test", "https://www.filepicker.io/api/file/wcr8ycSRN2TCUtLtgySd"]