// 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); }
public static void SetLordBase(this ITransaction trans, long accid, fmLordBase dataObj) { string strValue = new JavaScriptSerializer().Serialize(dataObj); trans.StringSetAsync(GetKeyLordInfo(accid), strValue); }
public static bool SetLordBase(this IDatabase db, long accid, fmLordBase dataObj) { string strValue = new JavaScriptSerializer().Serialize(dataObj); return(db.StringSet(GetKeyLordInfo(accid), strValue)); }