public async Task Register(Client client) { await _decorated.Register(client); var cacheKey = $"CacheEntry_Client_{client.Id}"; _cache.Set(cacheKey, client, _expiration); }
public async Task Register(Client client) { await _decorated.Register(client).ConfigureAwait(false); var cacheKey = $"CacheEntry_Client_{client.Id}"; var options = BuildEntryOptions(); _cache.Set(cacheKey, client, options); }