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