Merge pull request #14 from xiekevin/master

improved memcache effectiveness
Fixed bugs on memcache