Rails or Ruby Memcached Gem on Ubuntu and Linux
Get the following error when trying to install memcached ruby gem on your Ubuntu or Linux box? rlibmemcached_wrap.c: In function ‘_wrap_memcached_get_sasl_callbacks’: rlibmemcached_wrap.c:12413: error: ‘sasl_callback_t’ undeclared (first use in this function) rlibmemcached_wrap.c:12413: error: ‘result’ undeclared (first use in this function) rlibmemcached_wrap.c:12424: error: expected expression before ‘)’ token rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’: rlibmemcached_wrap.c:13694: error: ‘SASL_OK’ undeclared (first […]
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: Memcached, Ruby, rubygems
Memcached – Libmemcached already built; run ‘rake clean’ first if you need to rebuild.
Trying to install memcached ruby gem on Ubuntu 10.04 Lucid Lynx and I get the error Libmemcached already built; run ‘rake clean’ first if you need to rebuild. Fixed this by installing sudo apt-get install libsasl2-dev gem uninstall memcached && gem install memcached Full Error Stacktrace:
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: Memcached, rubygems, Ubuntu Lucid Lynx 10.04
Keep Track of Cache and Invalidate
I am yet to try this but it is a suggestion open to criticism. When caching it can be hard to keep track of where a model has caches and what the cache keys are labeled as. There are some tricks which allow the definition of the cache key invalidate the cache. For example if […]
In: Uncategorized · Tagged with: cache, Memcached
Rails Premcache with Memcached
Great write up about how to use memcached to speed up additional requests. http://blog.caboo.se/articles/2006/10/14/premcache-caching-and-precaching-with-memcached One thing I can’t seem to find is a good write up on some basic fragment caching with memcache. Will write my own in a few days.
In: Uncategorized · Tagged with: Memcached