Esempio n. 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");
        }
 public CachingDecorator(ISlowLegacyService inner, IDistributedCache cache)
 {
     _cache = cache;
     _inner = inner;
 }