PartCacheT ClassDocument Toolkit Help
Represents a thread-safe, in-memory cache of parts of type T with custom scavenging rules.
Inheritance Hierarchy

SystemObject
  FirstFloor.Documents.IO.CachingPartCacheT
    FirstFloor.Documents.IO.CachingPartCacheMaxContentSizeT
    FirstFloor.Documents.IO.CachingPartCacheMaxCountT

Namespace: FirstFloor.Documents.IO.Caching
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public class PartCache<T> : IPartCache<T>

Type Parameters

T
The part type.

The PartCacheT type exposes the following members.

Constructors

  NameDescription
Public methodPartCacheT
Initializes a new instance of the PartCacheT class
Top
Properties

  NameDescription
Protected propertyItems
Gets the items.
Top
Methods

  NameDescription
Public methodAddPart
Adds specified part to the cache.
Public methodClear
Clears this instance.
Public methodContains
Determines whether a part for specified URI is contained in the cache.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetScavengableItems
Gets the items eligible for scavenging.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetPart
Gets specified part from the cache.
Top
See Also

Reference