@classmethod
    def get_by_sid(cls, sid):
        data = memcache.get(sid)
        if not data:
            session = model.Key(cls, sid).get()
            if session:
                data = session.data
                memcache.set(sid, data)

        return data
Returns a ``Session`` instance by session id.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.5.1/webapp2_extras/appengine/sessions_ndb.py/Session.get_by_sid