StateObjectClass状态管理类
一、类名Class
类名:PublicFunctions.StateObjectClass
二、属性Properties
无
三、方法Methods
1、IsExist检查UniqueKey是否存在
函数:public static bool IsExist(string UniqueKey)
返回: bool
2、保存一个临时对象
函数:public static long Set<T>(string UniqueKey, T obj)
返回: long
3、获得一个状态
函数:public static T Get<T>(long ID, string UniqueKey, bool DeleteState = true)
返回: T
4、获得一个状态(重载)
函数:public static T GetByUniqueKey<T>(string UniqueKey, bool DeleteState = true)
返回: T
5、获得直接返回的字符串,不用反序列化
函数:public static string GetRawStringByUniqueKey(string UniqueKey, bool DeleteState = true)
返回: string
6、删除状态
函数:public static void Delete(long ID)
返回: 无
7、删除状态(重载)
函数:public static void Delete(string UniqueKey)
返回: 无