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