sudo apt-get install memcached#To restart memcahce
/etc/init.d/memcached restart#To install ruby binding gem to memecache
sudo gem install memcached
and to start memcache automatically on system startup
sudo gedit /etc/default/memcached# Set this to yes to enable memcached.
ENABLE_MEMCACHED=yes
thanks
ReplyDeleteI found I needed the memcached-client gem, not memcached
ReplyDeleteAnd I needed to add a line in my rails environment config:
config.cache_store = :mem_cache_store
In fact, are we even doing the same thing here? Maybe not
:) first two steps are to install and start memcache service on Ubuntu and then from step 3 its about rails different gem
ReplyDeleteOn this page you can read my interests, write something special. http://www.3gapps.de/barcodescan
ReplyDelete