Shared Cache is high performance distributed and replication cache system built for .Net applications running in server farms.

The CacheCleanup type exposes the following members.

Constructors

  NameDescription
CacheCleanup
Initializes a new instance of the CacheCleanup class.

Methods

  NameDescription
CalculateHybridChecksum
Calculates the hybrid checksum, this is used to create rate for every specific object in the cache based on various object attributes.

Remarks

The calculate done like this: HybridChecksum((c.HitRatio + ((c.ObjectSize / 1024) + (c.Span.Ticks / 1024) + (c.UsageDatetime.Ticks / 1024))));
Clear
Clears this instance.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetAccessStatList
Gets the access stat list.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
HybridChecksum
checksum for Hybrid cache clearup, makes a recursive call until it receives a smaller value then: 100000
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Purge
Purges this instance, free memory step 1: sort list based on requested configuration step 2: start to remove items from the list.
Remove
Removes the specified key.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Update
Updates the specified msg or its updating the available record if its already added.

Properties

  NameDescription
CacheAmountOfObjects
Gets the CacheAmountOfObjects (extern readonly)
CacheFillFactor
Gets/sets the CacheFillFactor
CleanupCacheConfiguration
Gets/sets the CleanupCacheConfiguration Defines the cleanup cache configuration, the default value is CACHEITEMPRIORITY [check Enums..::.ServiceCacheCleanUp for more information]
CleanupDict
Gets the cleanup list.
PurgeIsRunning
Gets the PurgeIsRunning

See Also