public void Add100StringOneByOne()
 {
     Key key = new Key (NS, SET, "100-list-test-key-string");
     client.Delete(null, key);
     var ll = new Aerospike.Helper.Collections.LargeList (client, null, key, "100-string");
     WriteIntSubElements (ll, 100);
     Assert.AreEqual (100, ll.Size ());
     ll.Destroy ();
     client.Delete(null, key);
 }
示例#2
0
        public void Add100StringOneByOne()
        {
            Key key = new Key(NS, SET, "100-list-test-key-string");

            client.Delete(null, key);
            var ll = new Aerospike.Helper.Collections.LargeList(client, null, key, "100-string");

            WriteIntSubElements(ll, 100);
            Assert.AreEqual(100, ll.Size());
            ll.Destroy();
            client.Delete(null, key);
        }
示例#3
0
        public void ScanString()
        {
            Key key = new Key(NS, SET, "100-list-test-key-string");

            client.Delete(null, key);
            var ll = new Aerospike.Helper.Collections.LargeList(client, null, key, "100-string");

            WriteStringSubElements(ll, 100);
            IList values = ll.Scan();

            Assert.AreEqual(100, ll.Size());
            for (int x = 0; x < 100; x++)
            {
                Assert.AreEqual(values [x], "cats-dogs-" + x);
            }
            ll.Destroy();
            client.Delete(null, key);
        }
 public void ScanString()
 {
     Key key = new Key (NS, SET, "100-list-test-key-string");
     client.Delete(null, key);
     var ll = new Aerospike.Helper.Collections.LargeList (client, null, key, "100-string");
     WriteStringSubElements (ll, 100);
     IList values = ll.Scan ();
     Assert.AreEqual (100, ll.Size ());
     for (int x = 0; x < 100; x++) {
         Assert.AreEqual (values [x], "cats-dogs-"+x);
     }
     ll.Destroy ();
     client.Delete(null, key);
 }