// Put saves new user session based on key
Put saves new user session based on key
// Put saves new user session based on key
func (s *Service) Put(user *chisk.User) error {
	i := item{
		User: user.AuthUser(),
	}
	return s.client.Set(user.Token, i.encode(), s.duration).Err()
}
func ( s * Service ) Put ( user * chisk . User ) error { i := item { User : user . AuthUser ( ) , } return s . client . Set ( user . Token , i . encode ( ) , s . duration ) . Err ( ) }
Put saves new user session based on key
Put saves new user session based on key