public RetrieveFromREDISResponse RetrieveOject(byte[] token, string key)
        {
            RetrieveFromREDISResponse res = new RetrieveFromREDISResponse();
            Session currentSession;

            if (SessionStore.TryGetValidSession(token, out currentSession))
            {
                Exception error = null;
                try
                {
                    res.SerializedObject = REDISConnector.REDISConnector.GetValue(key);
                }
                catch (Exception exp)
                {
                    error = exp;
                }
                QueryExecution.SuccessResponse(res, error);
            }
            else
            {
                QueryExecution.SecurityFailureResponse(res);
            }
            return(res);
        }
        public SimpleRacoonResponse InsertObject(byte[] token, string key, string value)
        {
            SimpleRacoonResponse res = new SimpleRacoonResponse();
            Session currentSession;

            if (SessionStore.TryGetValidSession(token, out currentSession))
            {
                Exception error = null;
                try
                {
                    REDISConnector.REDISConnector.SetValue(key, value);
                }
                catch (Exception exp)
                {
                    error = exp;
                }
                QueryExecution.SuccessResponse(res, error);
            }
            else
            {
                QueryExecution.SecurityFailureResponse(res);
            }
            return(res);
        }
 public ExecuteQueryBytesResponse ExecuteQueryBytes(byte[] token, string query, IEnumerable <StringParameter> InputParamList)
 {
     return((ExecuteQueryBytesResponse)QueryExecution.ExecuteQueryAllTypes(token, query, CheckParameters.CheckParameterDirection(InputParamList), ParameterTypeEnum.ByteArray));
 }
 public SimpleRacoonResponse InsertString(byte[] token, string query, IEnumerable <StringParameter> InputParamList)
 {
     return((SimpleRacoonResponse)QueryExecution.ExecuteQueryAllTypes(token, query, InputParamList, ParameterTypeEnum.NoExtraData));
 }
 public MultiVariableResponse ExecuteQueryMultiString(byte[] token, string query, IEnumerable <StringParameter> InputParamList)
 {
     return((MultiVariableResponse)QueryExecution.ExecuteQueryAllTypes(token, query, InputParamList, ParameterTypeEnum.String | ParameterTypeEnum.Multivalue));
 }