def get_exploration_by_id(exploration_id, strict=True, version=None):
 exploration_memcache_key = _get_exploration_memcache_key(exploration_id, version=version)
 memcached_exploration = memcache_services.get_multi([exploration_memcache_key]).get(exploration_memcache_key)
 if (memcached_exploration is not None):
  return memcached_exploration
 else:
  exploration_model = exp_models.ExplorationModel.get(exploration_id, strict=strict, version=version)
  if exploration_model:
   exploration = get_exploration_from_model(exploration_model)
   memcache_services.set_multi({exploration_memcache_key: exploration})
   return exploration
  else:
   return None

def get_exploration_by_id ( exploration_id , strict = True , version = None ) : exploration_memcache_key = _get_exploration_memcache_key ( exploration_id , version = version ) memcached_exploration = memcache_services . get_multi ( [ exploration_memcache_key ] ) . get ( exploration_memcache_key ) if ( memcached_exploration is not None ) : return memcached_exploration else : exploration_model = exp_models . ExplorationModel . get ( exploration_id , strict = strict , version = version ) if exploration_model : exploration = get_exploration_from_model ( exploration_model ) memcache_services . set_multi ( { exploration_memcache_key : exploration } ) return exploration else : return None
returns a domain object representing an exploration .