public void SaveSession(string user, ApiSessionData data)
        {
            data.ExpTime = DateTime.Now.AddMinutes(20);
            var client = new RedisClient(3);

            client.KSet(user, data, TimeSpan.FromMinutes(20));
        }
Exemple #2
0
            public Creator(Session creatorSession, string requestUri)
            {
                var id = SessionController.Context.Sessions.IndexOf(creatorSession);

                links = new CreatorLinks(requestUri, id);
                data  = new ApiSessionData(id);
            }