(*)finished memcached support refactoring