Method | Description | |
---|---|---|
Cache ( IPipeline pipeline, ICachePruner cachePruner ) : System |
Initializes a new instance of the Cache class.
|
|
Clear ( ) : void |
Immediately deactivates and removes all instances in the cache, regardless of scope.
|
|
Dispose ( bool disposing ) : void |
Releases resources held by the object.
|
|
DisposeRequestScoped ( HttpContext httpContext ) : void |
Disposes request scoped IDisposable instances
|
|
Prune ( ) : void |
Removes instances from the cache which should no longer be re-used.
|
|
Remember ( IContext context, InstanceReference reference ) : void |
Stores the specified context in the cache.
|
|
TryGet ( IContext context ) : object |
Tries to retrieve an instance to re-use in the specified context.
|
Method | Description | |
---|---|---|
Forget ( CacheEntry entry ) : void | ||
GetEntriesCache ( HttpContext httpContext ) : CacheEntry>.Multimap |
||
GetItemFromCache ( IContext context, object scope, CacheEntry>.Multimap |
||
GetRequestScopedDisposables ( HttpContext httpContext ) : ICollection |
public Cache ( IPipeline pipeline, ICachePruner cachePruner ) : System | ||
pipeline | IPipeline | The pipeline component. |
cachePruner | ICachePruner | The cache pruner component. |
return | System |
public DisposeRequestScoped ( HttpContext httpContext ) : void | ||
httpContext | HttpContext | |
return | void |
public Remember ( IContext context, InstanceReference reference ) : void | ||
context | IContext | The context to store. |
reference | InstanceReference | The instance reference. |
return | void |
public TryGet ( IContext context ) : object | ||
context | IContext | The context that is being activated. |
return | object |