Esempio n. 1
0
        public async Task <Customer> GetRedis(NorthwindRedis redis)
        {
            var item = await redis.Get <Customer>("ALFKI");

            return(item);
        }
Esempio n. 2
0
        public async Task SetRedis(EFCoreDB <NorthwindContext> db, NorthwindRedis redis)
        {
            var item = await db.DBContext.Customers.FirstAsync();

            await redis.Set(item.CustomerID, item);
        }