Eksporter (0) Skriv ut
Vis alt
EN
Dette innholdet er ikke tilgjengelig på ditt språk, men her er den engelske versjonen.

DataCache Methods

The DataCache type exposes the following members.

  Name Description
Public method Add(String, Object) Adds an object to the cache.
Public method Add(String, Object, IEnumerable<(Of <<'(DataCacheTag>)>>)) Adds an object to the cache. This method enables associating tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Add(String, Object, String) Adds an object to a region in the cache. This overload is not supported in Windows Azure Shared Caching.
Public method Add(String, Object, TimeSpan) Adds an object to the cache. This method provides the ability to specify when the object should be expired.
Public method Add(String, Object, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Adds an object to a region in the cache. This method enables association of tags with objects in the cache. This overload is not supported in Windows Azure Shared Caching.
Public method Add(String, Object, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>)) Adds an object to the cache. This method enables associating tags with the cached object and specifying when the object should be expired. This overload is not supported in Windows Azure Shared Caching.
Public method Add(String, Object, TimeSpan, String) Adds an object to a region in the cache. This method provides the ability to specify when the object should be expired. This overload is not supported in Windows Azure Shared Caching.
Public method Add(String, Object, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Adds an object to a region in the cache. This method enables associating tags with the cached object and specifying when the object should be expired. This overload is not supported in Windows Azure Shared Caching.
Public method AddCacheLevelBulkCallback Adds a bulk cache notification callback for cache operations occurring on all regions and items. Not supported in Windows Azure Shared Caching.
Public method AddCacheLevelCallback Adds a cache notification callback for cache operations occurring on all regions and items. Not supported in Windows Azure Shared Caching.
Public method AddFailureNotificationCallback Adds a failure notification callback, for notifications indicating that a client has missed one or more cache notifications. Not supported in Windows Azure Shared Caching.
Public method AddItemLevelCallback(String, DataCacheOperations, DataCacheNotificationCallback) Adds a cache notification callback for cache operations occurring on one specific item that is not stored in a region. Not supported in Windows Azure Shared Caching.
Public method AddItemLevelCallback(String, DataCacheOperations, DataCacheNotificationCallback, String) Adds a cache notification callback for cache operations occurring on one specific item that is stored in region. Not supported in Windows Azure Shared Caching.
Public method AddRegionLevelCallback Adds a cache notification callback for cache operations occurring on one specific region. Not supported in Windows Azure Shared Caching.
Public method Append(String, String) Concatenates a string to a string object stored in the cache.
Public method Append(String, String, String) Concatenates a string to a string object stored in the cache in the specified region.
Public method BulkGet(IEnumerable<(Of <<'(String>)>>)) Gets all of the objects associated with the specified keys across all system regions. This method does not search user-defined regions.
Public method BulkGet(IEnumerable<(Of <<'(String>)>>), String) Returns objects for the specified keys from the specified region of the cache. Not supported in Windows Azure Shared Caching.
Public method Clear Removes all objects from the cache associated with the DataCache object.
Public method ClearRegion Deletes all objects in the specified region. Not supported in Windows Azure Shared Caching.
Public method CreateRegion Creates a region. Not supported in Windows Azure Shared Caching.
Public method Decrement(String, Int64, Int64) Decrements a long value stored in the cache.
Public method Decrement(String, Int64, Int64, String) Decrements a long value stored in the cache in the specified region.
Public method Equals (Inherited from Object.)
Public method Get(String) Gets an object from the cache using the specified key.
Public method Get(String, DataCacheItemVersion%) Gets an object from the cache using the specified key. You may also provide the version to obtain a specific version of a key, if that version is still the most current in the cache.
Public method Get(String, String) Gets an object from the specified region by using the specified key. This overload is not supported in Windows Azure Shared Caching.
Public method Get(String, DataCacheItemVersion%, String) Gets an object from the specified region by using the specified key. You may also provide the version to obtain the specific version of a key, if that version is still the most current in the region. This overload is not supported in Windows Azure Shared Caching.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%) Locks the key if the key is present and it is not locked and returns the object corresponding to the key.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%, Boolean) Lock the key if key is present and it is not locked by any clients and returns the object corresponding to the key.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%, String) Locks the key if the key is present and is not locked and returns the object corresponding to the key. For objects stored in regions. This overload is not supported in Windows Azure Shared Caching.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%, String, Boolean) Lock the key if key is present and it is not locked by any clients and returns the object corresponding to the key. For objects stored in regions. This overload is not supported in Windows Azure Shared Caching.
Public method GetCacheItem(String) Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster.
Public method GetCacheItem(String, String) Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster. For objects stored in regions. This overload is not supported in Windows Azure Shared Caching.
Public method GetHashCode (Inherited from Object.)
Public method GetIfNewer(String, DataCacheItemVersion%) Gets an object from the cache, but only if a newer version of the object resides in the cache.
Public method GetIfNewer(String, DataCacheItemVersion%, String) Gets an object from the specified region, but only if a newer version of the object resides in the region. This overload is not supported in Windows Azure Shared Caching.
Public method GetObjectsByAllTags Gets an enumerable list of all cached objects in the specified region that have all the same tags in common. Not supported in Windows Azure Shared Caching.
Public method GetObjectsByAnyTag Gets an enumerable list of all cached objects in the specified region that have any of the same tags in common. Not supported in Windows Azure Shared Caching.
Public method GetObjectsByTag Gets an enumerable list of all cached objects in the specified region that have the specified tag. Not supported in Windows Azure Shared Caching.
Public method GetObjectsInRegion Gets an enumerable list of all cached objects in the specified region. Not supported in Windows Azure Shared Caching.
Public method GetSystemRegionName Returns the system region name for the specified key. Not supported in Windows Azure Shared Caching.
Public method GetSystemRegions Used to determine the default regions for the cache. Not supported in Windows Azure Shared Caching.
Public method GetType (Inherited from Object.)
Public method Increment(String, Int64, Int64) Increments a long value stored in the cache.
Public method Increment(String, Int64, Int64, String) Increments a long value stored in the cache in the specified region.
Public method Prepend(String, String) Prepends a string to a string object stored in the cache.
Public method Prepend(String, String, String) Prepends a string to a string object stored in the cache in the specified region.
Public method Put(String, Object) Adds or replaces an object in the cache.
Public method Put(String, Object, DataCacheItemVersion) Adds or replaces an object in the cache if it is at the specified version.
Public method Put(String, Object, IEnumerable<(Of <<'(DataCacheTag>)>>)) Adds or replaces an object in the cache. Associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, String) Adds or replaces an object in the specified region. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, TimeSpan) Adds or replaces an object in the cache. Specifies the timeout value of the cached object.
Public method Put(String, Object, DataCacheItemVersion, IEnumerable<(Of <<'(DataCacheTag>)>>)) Adds or replaces an object in the cache if it is at the specified version. Associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, DataCacheItemVersion, String) Adds or replaces an object in the specified region if it is at the specified version. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, DataCacheItemVersion, TimeSpan) Adds or replaces an object in the cache if it is at the specified version. Specifies the timeout value of the cached object.
Public method Put(String, Object, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Adds or replaces an object in the specified region. Associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>)) Adds or replaces an object in the cache. Specifies the timeout value and associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, TimeSpan, String) Adds or replaces an object in the specified region. Specifies the timeout value of the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, DataCacheItemVersion, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Adds or replaces an object in the specified region if it is at the specified version. Associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, DataCacheItemVersion, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>)) Adds or replaces an object in the cache if it is at the specified version. Specifies the timeout value and associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, DataCacheItemVersion, TimeSpan, String) Adds or replaces an object in the specified region if it is at the specified version. Specifies the timeout value of the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Adds or replaces an object in the specified region. Specifies the timeout value and associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Put(String, Object, DataCacheItemVersion, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Adds or replaces an object in the specified region if it is at the specified version. Specifies the timeout value and associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method PutAndUnlock(String, Object, DataCacheLockHandle) Replaces and unlocks an object in the cache.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, IEnumerable<(Of <<'(DataCacheTag>)>>)) Replaces and unlocks an object in the cache. Associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, String) Replaces and unlocks an object in the specified region. This overload is not supported in Windows Azure Shared Caching.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, TimeSpan) Replaces and unlocks an object in the cache. Specifies the timeout value of the cached object.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Replaces and unlocks an object in the specified region. Associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>)) Replaces and unlocks an object in the cache. Specifies the timeout value and associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, TimeSpan, String) Replaces and unlocks an object in the specified region. Specifies the timeout value of the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method PutAndUnlock(String, Object, DataCacheLockHandle, TimeSpan, IEnumerable<(Of <<'(DataCacheTag>)>>), String) Replaces and unlocks an object in the specified region. Specifies the timeout value and associates tags with the cached object. This overload is not supported in Windows Azure Shared Caching.
Public method Remove(String) Removes an object from the cache.
Public method Remove(String, DataCacheItemVersion) Removes an object with a specific version from the cache.
Public method Remove(String, DataCacheLockHandle) Removes an object from the cache with an associated lock handle.
Public method Remove(String, String) Removes an object from the cache in a region. This overload is not supported in Windows Azure Shared Caching.
Public method Remove(String, DataCacheItemVersion, String) Removes an object with a specific version from the cache in a region. This overload is not supported in Windows Azure Shared Caching.
Public method Remove(String, DataCacheLockHandle, String) Removes an object from the cache with an associated lock handle in a region. This overload is not supported in Windows Azure Shared Caching.
Public method RemoveCallback Removes a cache notification callback. Not supported in Windows Azure Shared Caching.
Public method RemoveRegion Deletes a region. All cached objects inside the region are also removed. Not supported in Windows Azure Shared Caching.
Public method ResetObjectTimeout(String, TimeSpan) Resets the object timeout value, defining how long objects reside in the cache before expiring. The value specified for the object overrides the default settings for the cache.
Public method ResetObjectTimeout(String, TimeSpan, String) Resets the object timeout value, defining how long objects reside in the region before expiring. The value specified for the object overrides the default settings for the cache.
Public method ToString (Inherited from Object.)
Public method Unlock(String, DataCacheLockHandle) Releases objects locked in the cache. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object.
Public method Unlock(String, DataCacheLockHandle, String) Releases objects locked in the specified region. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. This overload is not supported in Windows Azure Shared Caching.
Public method Unlock(String, DataCacheLockHandle, TimeSpan) Releases objects locked in the cache. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. Specifies a new timeout value for the cached object.
Public method Unlock(String, DataCacheLockHandle, TimeSpan, String) Releases objects locked in the specified region. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. Specifies a new timeout value for the cached object. This overload is not supported in Windows Azure Shared Caching.
Top

Fellesskapsinnhold

Legg til
Vis:
© 2014 Microsoft