Skip to content

Commit

Permalink
Update 20-fasterkv-basics.md
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc authored Feb 17, 2021
1 parent b1d7937 commit 68a3f3b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/_docs/20-fasterkv-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,32 @@ You can then perform a sequence of read, upsert, and RMW operations on the sessi

```cs
var status = session.Read(ref key, ref output);
var status = session.Read(ref key, ref input, ref output, ref context, ref serialNo);
var status = session.Read(ref key, ref input, ref output, context, serialNo);
await session.ReadAsync(key, input);
```

#### Upsert

```cs
var status = session.Upsert(ref key, ref value);
var status = session.Upsert(ref key, ref value, ref context, ref serialNo);
var status = session.Upsert(ref key, ref value, context, serialNo);
```

#### RMW

```cs
var status = session.RMW(ref key, ref input);
var status = session.RMW(ref key, ref input, ref context, ref serialNo);
var status = session.RMW(ref key, ref input, context, serialNo);
await session.RMWAsync(key, input);
```

#### Delete

```cs
var status = session.Delete(ref key);
var status = session.Delete(ref key, context, serialNo);
```

### Disposing

At the end, the session is disposed:
Expand Down

0 comments on commit 68a3f3b

Please sign in to comment.