func (obj *sessionService) Get(key string) ([]byte, error) {
	session, err := obj.get_value(key)
	if err != nil {
		return nil, err
	}

	if session.ExpireDate.Unix() < time.Now().Unix() {
		obj.Delete(key)
		return nil, errors.New(errors.UnauthorizedStatus, errors.ReSingIn, g.Trans().TranslateEN("ExpiredSessionID"))
	}

	res, err := hex.DecodeString(session.Value)
	if err != nil {
		return nil, errors.New(errors.UnexpectedStatus, errors.ReSingIn, g.Trans().TranslateEN("DecodeFailure"))
	}
	return res, nil
}
// Get gets the value for the given key.
// It returns ErrNotFound if the storage does not contain the key.
Get gets the value for the given key.
It returns ErrNotFound if the storage does not contain the key.
// Get gets the value for the given key . // It returns ErrNotFound if the storage does not contain the key .
func (obj *sessionService) Get(key string) ([]byte, error) {
	session, err := obj.get_value(key)
	if err != nil {
		return nil, err
	}
	if session.ExpireDate.Unix() < time.Now().Unix() {
		obj.Delete(key)
		return nil, errors.New(errors.UnauthorizedStatus, errors.ReSingIn, g.Trans().TranslateEN("ExpiredSessionID"))
	}
	res, err := hex.DecodeString(session.Value)
	if err != nil {
		return nil, errors.New(errors.UnexpectedStatus, errors.ReSingIn, g.Trans().TranslateEN("DecodeFailure"))
	}
	return res, nil
}
func ( obj * sessionService ) Get ( key string ) ( [ ] byte , error ) { session , err := obj . get_value ( key ) if err != nil { return nil , err } if session . ExpireDate . Unix ( ) < time . Now ( ) . Unix ( ) { obj . Delete ( key ) return nil , errors . New ( errors . UnauthorizedStatus , errors . ReSingIn , g . Trans ( ) . TranslateEN ( " " ) ) } res , err := hex . DecodeString ( session . Value ) if err != nil { return nil , errors . New ( errors . UnexpectedStatus , errors . ReSingIn , g . Trans ( ) . TranslateEN ( " " ) ) } return res , nil }
Get gets the value for the given key.
Get gets the value for the given key .