1 2 3 4 5 6 7 8 9 10 11 | alias HashFile!(char[], char[]) Bucket; auto bucket = new Bucket ("bucket.bin", HashFile.HalfK); // insert some data, and retrieve it again auto text = "this is a test"; bucket.put ("a key", text); auto b = cast(char[]) bucket.get ("a key"); assert (b == text); bucket.close; |