fixed memcache option error when object not provided