1package example:kv-store; 2 3interface kvdb { 4 resource connection { 5 constructor(); 6 get: func(key: string) -> option<string>; 7 set: func(key: string, value: string); 8 remove: func(key: string) -> option<string>; 9 clear: func(); 10 } 11} 12 13world kv-database { 14 import kvdb; 15 import log: func(msg: string); 16 export replace-value: func(key: string, value: string) -> option<string>; 17} 18