Ejemplo n.º 1
0
        /// <summary>
        /// 获取更新列表
        /// </summary>
        /// <param name="expression"></param>
        /// <returns></returns>
        public static HashEntry[] HashEntry(Expression <Func <T> > expression)
        {
            var redis = new RedisExpression <T>();

            redis.Resolve(expression);

            return(redis.HashEntryList.ToArray());
        }
Ejemplo n.º 2
0
        public void HashSet <T>(string key, Expression <Func <T> > expression) where T : class, new()
        {
            var hashEntry = RedisExpression <T> .HashEntry(expression);

            Db.HashSet(key, hashEntry);
        }