Ejemplo n.º 1
0
        public async Task PutRecord <T>(
            CacheRecord <T> cacheRecord,
            string cacheName = "")
        {
            var req = new CachePushRequest();

            req.Record = GetBytes(cacheRecord.Record);
            if (cacheRecord.Metadata != null)
            {
                req.Metadata = GetBytes(cacheRecord.Metadata);
            }
            req.Id          = cacheRecord.Id;
            req.Environment = Util.GetEnvironment();
            req.CacheName   = cacheName;
            await _client.CachePushAsync(req);
        }
Ejemplo n.º 2
0
 public Task PutRecord <T>(
     CacheRecord <T> cacheRecord,
     string cacheName = null)
 {
     return(Task.CompletedTask);
 }