Skip to content

Commit

Permalink
Fixed faulty sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
uzyn committed May 7, 2024
1 parent 3fa283c commit bc7ce8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ use sparkv::SparKV;

let mut sparkv = SparKV::new();
sparkv.set("your-key", "your-value"); // write
sparkv.get("your-key", "your-value"); // read
let value = sparkv.get("your-key").unwrap(); // read

// Set with unique TTL
// Write with unique TTL
sparkv.set_with_ttl("longer", "your-value", std::time::Duration::from_secs(60));
```

Expand Down

0 comments on commit bc7ce8d

Please sign in to comment.