Пример #1
0
        public bool Obj2ByteArraySetAsync <T>(string key, T set_object, TimeSpan?timeOut = null)
        {
            IDatabase db = Database();

            if (db == null)
            {
                return(false);
            }
            var serialize_Vo = SCUtility.ToByteArray(set_object);

            key = $"{productID}_{key}";
            db.StringSetAsync(key, serialize_Vo, timeOut);
            UsingCount();
            return(true);
        }