{CompanyName} FlexyGo

MyCache..::..AddItem Method (String, Object, TimeSpan, Boolean)

Adds the item.

Namespace:  FLEXYGO.Caching
Assembly:  flxSession (in flxSession.dll)

Syntax


public static void AddItem(
	string key,
	Object item,
	TimeSpan slidingExpiration,
	bool NotRemovable
)
Public Shared Sub AddItem ( _
	key As String, _
	item As Object, _
	slidingExpiration As TimeSpan, _
	NotRemovable As Boolean _
)

Parameters

key
Type: String
The key.
item
Type: Object
The item.
slidingExpiration
Type: TimeSpan
time period since the object was last used.
NotRemovable
Type: Boolean
If element can not be removed from cache.