コード例 #1
0
        public async Task Register(Client client)
        {
            await _decorated.Register(client);

            var cacheKey = $"CacheEntry_Client_{client.Id}";

            _cache.Set(cacheKey, client, _expiration);
        }
コード例 #2
0
        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);
        }