Error processing SSI file
LEADTOOLS Caching (Leadtools.Caching assembly)

Show in webframe

AddOrGetExisting(String,Object,DateTime,String) Method






Unique identifier of the cache item.
Data for the cache item.
Absolute expiration date to use.
Optional name of a region in cache.
Adds an entry using key and value pair and absolute expiration date into the cache, and returns an existing cache entry with a matching key.
Syntax
public override object AddOrGetExisting( 
   string key,
   object value,
   DateTime absoluteExpiration,
   string regionName
)
'Declaration
 
Public Overloads Overrides Function AddOrGetExisting( _
   ByVal key As String, _
   ByVal value As Object, _
   ByVal absoluteExpiration As Date, _
   ByVal regionName As String _
) As Object
'Usage
 
Dim instance As FileCache
Dim key As String
Dim value As Object
Dim absoluteExpiration As Date
Dim regionName As String
Dim value As Object
 
value = instance.AddOrGetExisting(key, value, absoluteExpiration, regionName)
public:
Object^ AddOrGetExisting( 
   String^ key,
   Object^ value,
   DateTime absoluteExpiration,
   String^ regionName
) override 

Parameters

key
Unique identifier of the cache item.
value
Data for the cache item.
absoluteExpiration
Absolute expiration date to use.
regionName
Optional name of a region in cache.

Return Value

The previous cache entry that matches the specified key, if found. If the cache contains an item with the same key, then it will be returned before it is overwritten. Otherwise, null.
Requirements

Target Platforms

See Also

Reference

FileCache Class
FileCache Members
Overload List

Error processing SSI file
Leadtools.Caching requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features