Add a CacheItem and update all machines if any (does nothing when EasyCache is not Active),

This will send cache invalidation updates automatically across all machines.

WARNING: use carefully only when needed to avoid excessive network traffic and slowness - otherwise use Add().

Namespace:  MicroMighty.SDK.Net.Tools
Assembly:  MicroMighty.SDK.Net (in MicroMighty.SDK.Net.dll)

Syntax

Visual Basic (Declaration)
Public Sub AddToAllMachines ( _
	key As String, _
	value As Object, _
	dependencies As CacheDependency, _
	expirationAbsolute As DateTime, _
	expirationSliding As TimeSpan, _
	priority As CacheItemPriority _
)
C#
public void AddToAllMachines(
	string key,
	Object value,
	CacheDependency dependencies,
	DateTime expirationAbsolute,
	TimeSpan expirationSliding,
	CacheItemPriority priority
)
Visual C++
public:
void AddToAllMachines(
	String^ key, 
	Object^ value, 
	CacheDependency^ dependencies, 
	DateTime expirationAbsolute, 
	TimeSpan expirationSliding, 
	CacheItemPriority priority
)
JavaScript
function addToAllMachines(key, value, dependencies, expirationAbsolute, expirationSliding, priority);

Parameters

key
Type: System..::.String
value
Type: System..::.Object
dependencies
Type: System.Web.Caching..::.CacheDependency
expirationAbsolute
Type: System..::.DateTime
expirationSliding
Type: System..::.TimeSpan
priority
Type: System.Web.Caching..::.CacheItemPriority

See Also