working scripts committed. One for memcache, one for redis