-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C#] Expand async session-free API sample in playground (#452)
* added sample * cleaned up async stress * Fix memory leak + add serialized wrapper sample * added testcases for concurrency within session in async. * clean up LMD
- Loading branch information
Showing
10 changed files
with
555 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using FASTER.core; | ||
using System.Threading.Tasks; | ||
|
||
namespace AsyncStress | ||
{ | ||
public interface IFasterWrapper<Key, Value> | ||
{ | ||
long TailAddress { get; } | ||
int UpsertPendingCount { get; set; } | ||
bool UseOsReadBuffering { get; } | ||
|
||
void Dispose(); | ||
ValueTask<(Status, Value)> Read(Key key); | ||
ValueTask<(Status, Value)> ReadAsync(Key key); | ||
ValueTask<(Status, Value)[]> ReadChunkAsync(Key[] chunk, int offset, int count); | ||
void Upsert(Key key, Value value); | ||
ValueTask UpsertAsync(Key key, Value value); | ||
ValueTask UpsertChunkAsync((Key, Value)[] chunk, int offset, int count); | ||
} | ||
} |
Oops, something went wrong.