CacheKeyBuilder Class |
Builds cache item keys and dependency keys.
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.9.1.0 (6.9.1.0)
C#
public class CacheKeyBuilder : IDisposable
The CacheKeyBuilder type exposes the following members.
Name | Description | |
---|---|---|
CacheKeyBuilder() |
Initializes a new CacheKeyBuilder with a default maximal key size of 2048 characters.
| |
CacheKeyBuilder(Int32) |
Initializes a new CacheKeyBuilder and specifies the maximal key size.
|
Name | Description | |
---|---|---|
IgnoredParameterSentinel |
A sentinel object that means that the parameter is not a part of the cache key, and should be ignored.
| |
MaxKeySize |
Gets the maximal number of characters in cache keys.
|
Name | Description | |
---|---|---|
AppendArgument |
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.
| |
AppendMethod |
Appends the method name and generic arguments to an UnsafeStringBuilder.
| |
AppendObject |
Appends a string representing an Object to an UnsafeStringBuilder.
| |
AppendType |
Appends a Type name to an UnsafeStringBuilder.
| |
BuildDependencyKey |
Builds a dependency key for a given object.
| |
BuildMethodKey |
Builds a cache key for a given method call.
| |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Dispose(Boolean) |
Disposes the current object.
| |
GetCachedMethodInfo |
Gets the CachedMethodInfo for a given MethodInfo.
|