コード例 #1
0
        public static async Task <CacheObject <T> > GetInsertAsync <T>(Expression <Func <Task <T> > > getFunction, string applicationName) where T : class
        {
            var key = RedisKeysGenerator.GenerateKey(getFunction, applicationName);

            return(await GetInsert(key, getFunction.Compile(), ExpiryTime.None).ConfigureAwait(false));
        }
コード例 #2
0
        public static CacheObject <T> GetInsert <T>(Expression <Func <T> > getFunction) where T : class
        {
            var key = RedisKeysGenerator.GenerateKey(getFunction);

            return(GetInsert(key, getFunction.Compile(), ExpiryTime.None));
        }