Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: general purpose key-value store #1540

Merged
merged 2 commits into from
Sep 8, 2023
Merged

feat: general purpose key-value store #1540

merged 2 commits into from
Sep 8, 2023

Conversation

luan
Copy link
Contributor

@luan luan commented Sep 1, 2023

Adds a brand new storage system to Canary. See README.md in the kv directory for details. Here are the basics:

Basic Usage

C++

// Set an integer value
kv.set("age", 30);

// Get an integer value
int age = kv.get<int>("age");

Lua

-- Set and get an integer value
kv.set("age", 30)
local age = kv.get("age")

@luan luan marked this pull request as ready for review September 3, 2023 02:11
@luan luan requested a review from lgrossi September 3, 2023 02:11
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
3.1% 3.1% Duplication

@luan luan merged commit 3f17a95 into opentibiabr:main Sep 8, 2023
JasterDesu pushed a commit to JasterDesu/canary that referenced this pull request Sep 16, 2023
Adds a brand new storage system to Canary. See README.md in the `kv`
directory for details. Here are the basics:

### Basic Usage

C++

```cpp
// Set an integer value
kv.set("age", 30);

// Get an integer value
int age = kv.get<int>("age");
```

Lua

```lua
-- Set and get an integer value
kv.set("age", 30)
local age = kv.get("age")
```
@luan luan deleted the luan/kv-store branch September 27, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants