Ejemplo n.º 1
0
        public async Task Hash()
        {
            var hash = new RedisHash <string>(GlobalSettings.Default, "hash");
            await hash.Delete();

            await hash.Set("foo", 100);

            await hash.Set("bar", "aiueo!");

            (await hash.Get <int>("foo")).Value.Is(100);
            (await hash.Get <string>("bar")).Value.Is("aiueo!");
        }
Ejemplo n.º 2
0
        public async Task Hash()
        {
            var hash = new RedisHash<string>(GlobalSettings.Default, "hash");
            await hash.Delete();

            await hash.Set("foo", 100);
            await hash.Set("bar", "aiueo!");

            (await hash.Get<int>("foo")).Value.Is(100);
            (await hash.Get<string>("bar")).Value.Is("aiueo!");
        }