Beispiel #1
0
        // lordInfo
        public static bool GetLordBase(this IDatabase db, long accid, out fmLordBase obj)
        {
            obj = null;
            string strValue = db.StringGet(GetKeyLordInfo(accid));

            if (true == string.IsNullOrEmpty(strValue))
            {
                return(false);
            }

            obj = new JavaScriptSerializer().Deserialize <fmLordBase>(strValue);

            return(true);
        }
Beispiel #2
0
        public static void SetLordBase(this ITransaction trans, long accid, fmLordBase dataObj)
        {
            string strValue = new JavaScriptSerializer().Serialize(dataObj);

            trans.StringSetAsync(GetKeyLordInfo(accid), strValue);
        }
Beispiel #3
0
        public static bool SetLordBase(this IDatabase db, long accid, fmLordBase dataObj)
        {
            string strValue = new JavaScriptSerializer().Serialize(dataObj);

            return(db.StringSet(GetKeyLordInfo(accid), strValue));
        }