init: basic KV storage
This commit is contained in:
commit
b2e898eeed
3 changed files with 22 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
a.out
|
||||
4
README.md
Normal file
4
README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# bluedis
|
||||
|
||||
Redis, but worse in every conceivable manner.
|
||||
And also written in C++.
|
||||
17
main.cpp
Normal file
17
main.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::vector<std::vector<std::string>> database;
|
||||
|
||||
database = {
|
||||
{ "name", "username" },
|
||||
{ "john", "unwanted_guest"},
|
||||
{ "laith", "ducc" }
|
||||
};
|
||||
|
||||
for (std::vector entry: database) {
|
||||
std::cout << entry[0] << " | " << entry[1] << std::endl;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue