1 module a4g;
2 public:
3 import a4g.connection;
4 
5 void main()
6 {
7     import std.stdio;
8 
9     auto conn = A4GConnection( "http://localhost:8080/" );
10 
11     foreach( i; 0..10 )
12         conn.store( "int", i );
13 
14     writeln( "Done storing." );
15 
16     foreach( i; conn.retrieve!int( "int" ) )
17         writeln( "Int: ", i );
18 
19     writeln( "Done retrieving." );
20 }