C-DEngine 5.105

TheMirrorCache<(Of <(<'T>)>)> Members

The TheMirrorCache<(Of <(<'T>)>)> type exposes the following members.

Constructors


  Name Description
Public method TheMirrorCache<(Of <(<'T>)>)>()()()()
Initializes a new instance of the TheMirrorCache<(Of <(<'T>)>)> class.
Public method TheMirrorCache<(Of <(<'T>)>)>(Int32)
Initializes a new instance of the TheMirrorCache<(Of <(<'T>)>)> class.

Methods


  Name Description
Public method AddAnItem(T, Action<(Of <<'(List<(Of <<'(T>)>>)>)>>))
Adds an item.
Public method AddAnItem(Guid, T, Action<(Of <<'(T>)>>))
Adds an item.
Public method AddItems(List<(Of <<'(T>)>>), Action<(Of <<'(List<(Of <<'(T>)>>)>)>>))
Adds the items.
Public method AddItems(Dictionary<(Of <<'(Guid, T>)>>), Action<(Of <<'(List<(Of <<'(T>)>>)>)>>))
New in V2.5: Adds a dictionary of T to the StorageMirrorCache The Guid in the Key will be copied to the cdeMID (IndexKey) of T If the key already exists in the store, the record will not be added.
Public method AddOrUpdateItem(Guid, T, Action<(Of <<'(T>)>>))
Adds the or update item.
Public method AddOrUpdateItem(T)
Adds the or update item.
Public method AddOrUpdateItemKey
Blob and MyEngines
Public method Clear
Clears the specified zip before.
Public method ContainsByFunc
Determines whether [contains by function] [the specified p selector].
Public method ContainsID(String)
Blob and MyEngines
Public method ContainsID(Guid)
Determines whether the specified p key contains identifier.
Public method ContainsIDStr
Allowed for MyBlobData
Public method Dispose
Disposes this instance.
Public method Equals(System.Object) (Inherited from Object.)
Public method Fill(TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse)
Fills the specified p response.
Public method Fill(TheStorageMirror<(Of <<'(T>)>>), Boolean)
Fills the specified p mirror.
Public method Fill(TheStorageMirror<(Of <<'(T>)>>), String, Int32, Boolean)
Fills the specified p mirror.
Protected method Finalize (Inherited from Object.)
Public method FlushCache(Boolean)
Flushes the cache.
Public method FlushCache(Boolean, Boolean)
Public method ForceSave
Public method GetEntriesByFunc
Gets the entries by function.
Public method GetEntryByFunc
Gets the entry by function.
Public method GetEntryByID(String)
Gets the entry by identifier.
Public method GetEntryByID(Guid)
Gets the entry by identifier.
Public method GetFirstItem Obsolete.
Gets the first item.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method LoadCacheFromDisk
Loads the cache from disk.
Protected method MemberwiseClone (Inherited from Object.)
Public method NotifyOfUpdate
Notifies the of update.
Public method RemoveAllItems
Removes all items.
Public method RemoveAnItem(T, Action<(Of <<'(List<(Of <<'(T>)>>)>)>>))
Removes an item.
Public method RemoveAnItem(T)
Removes an item.
Public method RemoveAnItemByID
Blob and MyEngines
Public method RemoveAnItemByKey
Removes an item by key.
Public method RemoveItems
Removes the items.
Public method RemoveItemsByKeyList
Removes the items by key list.
Public method RemoveStore
Public method Reset
Resets this instance.
Public method SaveCacheToDisk
Saves the cache to disk.
Public method SetAutoUpdateOnChange
Sets the automatic update on change.
Public method SetMaxStoreSize
Sets the maximum size of the store.
Public method Shutdown
Shutdowns this instance.
Public method ToString (Inherited from Object.)
Public method TrackInsertionOrder
Enables APIs for retrieving items in the order in which they were inserted, including by sequence number. Can only be set on an empty cache.
Public method UpdateID(Guid, Guid)
Updates the Guid identifier.
Public method UpdateID(String, String)
Updates the string identifier.
Public method UpdateItem
Updates the item.
Public method UpdateItems
Updates the items.

Fields


  Name Description
Public field eventCachedReady
The event once cache is ready
Public field HasUpdates
Event if the Store has updates
Public field NewCacheFileCallback
Called after a new cache file is created. Occurs for AppendOnly StorageMirrors that have defined a MaxCacheFileSize

Properties


  Name Description
Public property AllowFireUpdates
Gets or sets a value indicating whether [allow fire updates].
Public property AppendOnly
If set to true the store will only append records to disk and not store any in RAM (MyRecords of the MirrorCache)
Public property BlockWriteIfIsolated
Public property CacheStoreInterval
Public property Count
Gets the count.
Public property FastSaveLock
For persistent mirror caches, indicates if save operations should minimize locking by serializing to memory instead of disk (trades off higher memory usage against performance)
Public property IsCacheEncrypted
Gets or sets a value indicating whether this instance is cache encrypted.
Public property IsCachePersistent
Gets or sets a value indicating whether this instance is cache persistent.
Public property IsReady
Gets or sets a value indicating whether this instance is ready.
Public property IsStoreIntervalInSeconds
If set to true the store will save the content very CacheStoreInterval seconds. If set to false it requries CacheStoreInterval Changes to the store to write to disk
Public property MaxCacheFileCount
Maxmimum number of cache files allowed. Once this number is reached, older files will be deleted. Used only for AppendOnly StorageMirrors.
Public property MaxCacheFileSize
Maximum size (in KB) allowed for a single cache file. Used only for AppendOnly StorageMirrors.
Public property TheKeys
Gets the keys.
Public property TheValues
Gets the values.
Public property UseSafeSave
For persistent caches, gets or sets a value indicating whether to keep a backup copy during each save.

Events


  Name Description
Public event PropertyChanged Obsolete.