コード例 #1
0
        public CarPriceController(ISlowLegacyService service, IBucketProvider bucketProvider)
        {
            _service = service;

            // this is only in the homecontroller for GetCachedItemsFromCouchbase
            // which is purely for demonstration/presentation purposes
            _bucket = bucketProvider.GetBucket("mycache");
        }
コード例 #2
0
 public CachingDecorator(ISlowLegacyService inner, IDistributedCache cache)
 {
     _cache = cache;
     _inner = inner;
 }