Free memcached for
Openshift application

25 mb

It's possible to add memcached to Openshift application for free.

 

Setup

Go to Openshift Web console, select your application and go to Marketplace and add Memcached Cloud cartridge with free plan to your application.

Now, you can view the connection information for your memcached in details of the cartridge. All you need is endpoint, username and password.

Test

For example, to access memcached from Rails you can use dalli gem:

gem 'dalli'

and test your connection using remote rails console

$ rhc ssh
$ cd app-root/repo
$ RAILS_ENV=production rails c

with these commands

dc = Dalli::Client.new('pub-memcache-18228.us-east-1-2.4.ec2.garantiadata.com:18228', {compress: true, username: 'memcachedcloud', password: '***' })
dc.set('test','1')
dc.get('test')

Free plan includes about 25 mb of in-memory cache.

 

Good luck with fastest caching technologies]

 

shitpoet@gmail.com

 



 

free hit counters