This git repository helps you easily integrate the Memcached Cloud service into your OpenShift apps.
###Step 1. Create OpenShift App###
Create an account at http://openshift.redhat.com/ and set up you local machine with the client tools.
Create a ruby-1.9 application (you can call your application whatever you want)
rhc app create memcachedcloudapp ruby-1.9 --from-code git://github.com/openshift-quickstart/memcachedcloud-openshift-quickstart.git
If --from-code
is not recognized, update your rhc
gem.
###Step 2. Configure Memcached Cloud###
- Sign up for a free account at http://garantiadata.com/memcached
- Create a memcached bucket
- Retrieve your instance's host, port, username and password
- Configure your memcached bucket at config.rb file.
config = {
emcachedcloud_servers = 'your-memcached-cloud-servers'
memcachedcloud_username = 'your-memcached-cloud-username'
memcachedcloud_password = 'your-memcached-cloud-password'
}
###Step 3. Deploy your app###
git add .
git commit -m "my first commmit"
git push
###Step 4. View your app!###
http://memcachedcloudapp-$yournamespace.rhcloud.com
For Memcached Clouds's developer resources visit: http://garantiadata.com/memcached/developers
For general information about Memcached project see: http://memcached.org/
For more information on Memcached Cloud visit: http://garantiadata.com/memcached