```ruby
require 'json'
require 'redis'

class CloudCredo < Sinatra::Base
  configure do
    redis_service = JSON.parse(ENV['VCAP_SERVICES'])["redis"]
    credentials = redis_service.first["credentials"]
    $redis = Redis.new(:host => credentials["hostname"], :port => credentials["port"])
  end

  get '/' do
    'CloudCredo help you deliver value with Cloud Foundry!'
  end

  get '/set/:key/to/:value' do
    $redis.set(params[:key], params[:value])
    "set #{params[:key]} to #{params[:value]}"
  end
  
  get '/get/:key' do
    $redis.get(params[:key])
  end
end
```

Fix typo in Ruby default app
user
```ruby
require 'json'
require 'redis'

class CloudCredo < Sinatra::Base
  configure do
    redis_service = JSON.parse(ENV['VCAP_SERVICES'])["redis"]
    credentials = redis_service.first["credentials"]
    $redis = Redis.new(:host => credentials["hostname"], :port => credentials["port"])
  end

  get '/' do
    'CloudCredo helps you deliver value with Cloud Foundry!'
  end

  get '/set/:key/to/:value' do
    $redis.set(params[:key], params[:value])
    "set #{params[:key]} to #{params[:value]}"
  end

  get '/get/:key' do
    $redis.get(params[:key])
  end
end
```
assistant