refactoring memcache, user a service for memcache
Catch error when cast object from memcache