-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
38 lines (31 loc) · 830 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// read the config file
// setup the clients and server accordingly
#include "storage.hpp"
#include <iostream>
int main()
{
// WRITE PARSER
// sample received string
string s, key, method;
Storage sr;
sr.handle_put("5", "500");
sr.handle_put("4", "400");
sr.handle_put("3", "300");
sr.handle_put("2", "200");
sr.handle_delete("3");
sr.handle_put("2", "100");
sr.handle_delete("2");
sr.handle_put("2", "200");
sr.handle_delete("4");
sr.handle_get("4");
sr.handle_get("5");
sr.handle_get("5");
sr.handle_delete("5");
sr.handle_put("5", "0");
sr.handle_get("5");
sr.handle_get("5");
sr.handle_delete("13");
// for(auto i=sr.table.begin(); i!=sr.table.end(); i++)
// std::cout<<i->first<<" "<<i->second<<endl;
return 0;
}