The ReadWriteCache type exposes the following members.

Methods

  NameDescription
AfterInsert
AfterUpdate
Re-cache the updated state, if and only if there there are no other concurrent soft locks. Release our lock.
Clear
Destroy
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Evict
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.)
Get
Do not return an item whose timestamp is later than the current transaction timestamp. (Otherwise we might compromise repeatable read unnecessarily.) Do not return an item which is soft-locked. Always go straight to the database instead.
GetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Insert
Lock
Stop any other transactions reading or writing this item to/from the cache. Send them straight to the database instead. (The lock does time out eventually.) This implementation tracks concurrent locks by transactions which simultaneously attempt to write to an item.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Put
Do not add an item to the cache unless the current transaction timestamp is later than the timestamp at which the item was invalidated. (Otherwise, a stale item might be re-added if the database is operating in repeatable read isolation mode.)
Release
Remove
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Update

See Also