Table of Contents

Class CacheDependencyBuilder

Namespace
CMS.Helpers
Assembly
CMS.Helpers.dll

Builder class for creating cache dependencies.

public sealed class CacheDependencyBuilder
Inheritance
object
CacheDependencyBuilder
Extension Methods

Methods

AddDependency(IEnumerable<string>)

Adds a cache keys to the dependencies stored in this builder.

public CacheDependencyBuilder AddDependency(IEnumerable<string> dependencies)

Parameters

dependencies IEnumerable<string>

Dependencies to add.

Returns

CacheDependencyBuilder

Returns CacheDependencyBuilder instance to add another dependencies.

AddDependency(string)

Adds a cache key to the dependencies stored in this builder.

public CacheDependencyBuilder AddDependency(string dependency)

Parameters

dependency string

Dependency to add.

Returns

CacheDependencyBuilder

Returns CacheDependencyBuilder instance to add another dependencies.

Build()

Builds the final cache dependency.

public CMSCacheDependency Build()

Returns

CMSCacheDependency