Example #1
0
 public CacheBucketFluentConfig AddBucket(CacheBucketOptions options)
 {
     CacheStorageMapping.Instance.AddMapping(options.Name, options.StorageType);
     return(this);
 }
Example #2
0
 public CacheBucketFluentConfig AddBucket <TBucket>(CacheBucketOptions options) where TBucket : CacheBucket
 {
     _services.AddSingleton <TBucket>();
     return(AddBucket(options));
 }