Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-477

The C# client does not have asynchronous versions of cache operations

XMLWordPrintable

    • ER3

      The current implementation allows for asynchronous invocation of all methods through C# Task API in this way:

      await Task.Run(() => cache.Put(k,v)).
      

      However, it is common in C# to have asynchronous methods ending with "Async" (e.g. StreamReader has ReadLineAsync link StreamReader.ReadLineAsync)

      The goal is to simplify programming with these methods and allow the caller to call just:

      await cache.PutAsync(k,v)
      

      The .NET client should provide asynchronous versions of basic operations such as put, get, etc. All the operations of the original Java client should have their "async" equivalents:

      • GetAsync
      • PutAsync
      • PutIfAbsent
      • PutAllAsync
      • ClearAsync
      • RemoveAsync
      • ReplaceAsync
      • ReplaceWithVersionAsync
      • RemoveWithVersionAsync

              mgencur Martin Gencur
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: