PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Implementation Namespace / Cache­Key­Builder Class

CacheKeyBuilder Class

Builds cache item keys and dependency keys.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: (
public class CacheKeyBuilder : IDisposable

The CacheKeyBuilder type exposes the following members.

Public methodCacheKeyBuilder()
Initializes a new CacheKeyBuilder with a default maximal key size of 2048 characters.
Public methodCacheKeyBuilder(Int32)
Initializes a new CacheKeyBuilder and specifies the maximal key size.
Protected propertyIgnoredParameterSentinel
A sentinel object that means that the parameter is not a part of the cache key, and should be ignored.
Public propertyMaxKeySize
Gets the maximal number of characters in cache keys.
Protected methodAppendArgument
Appends a method argument to an UnsafeStringBuilder. To avoid ambiguities between different overloads of the same method, the default implementation appends both the parameter type and the value key.
Protected methodAppendMethod
Appends the method name and generic arguments to an UnsafeStringBuilder.
Protected methodAppendObject
Appends a string representing an Object to an UnsafeStringBuilder.
Protected methodAppendType
Appends a Type name to an UnsafeStringBuilder.
Public methodBuildDependencyKey
Builds a dependency key for a given object.
Public methodBuildMethodKey
Builds a cache key for a given method call.
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Disposes the current object.
Protected methodGetCachedMethodInfo
Gets the CachedMethodInfo for a given MethodInfo.
See Also