README.markdown in morlock-0.0.1 vs README.markdown in morlock-0.0.2
- old
+ new
@@ -10,16 +10,16 @@
require 'memcache-client'
require 'morlock'
mem_cache_client = MemCache.new("memcached.you.com")
- morlock = Morlock.new(mem_cache_client)
+ morlock = Morlock.new(mem_cache_client)
If you prefer Dalli, use that instead:
require 'dalli'
dc = Dalli::Client.new('localhost:11211')
- morlock = Morlock.new(dc)
+ morlock = Morlock.new(dc)
#### Rails
If you're already using MemCacheStore in your Rails app, using Morlock is trivial. Morlock will automatically use the memcached server that is backing Rails.cache.