@@ -0,0 +1,660 @@
+from cssdbpy import Connection%0Aimport md5%0A%0Aif __name__ == '__main__':%0A%09conn = Connection('127.0.0.1', 8888)%0A%09for i in xrange(0, 10000):%0A%09%09md5word = md5.new('word%7B%7D'.format(i)).hexdigest()%0A%09%09create = conn.execute('zset','ztest', md5word, i)%0A%09%09value = conn.execute('zget','ztest', md5word)%0A%09%09conn.execute('zincr','ztest', md5word)%0A%09%09conn.execute('zincr','ztest', md5word, 10)%0A%09%09exists = conn.execute('zexists','ztest', md5word)%0A%09%09delete = conn.execute('zdel','ztest', md5word)%0A%09%09print md5word, value, create, exists, delete%0A%09print conn.execute('zscan', 'ztest', '', 0, 1000, 10)%0A%09print conn.execute('zrscan', 'ztest', 1000, 0, 10)%0A%09conn.execute('zclean','words')

Add files via upload