Shunde.NET Framework Class Library

ObjectUtils.GetObjectFromCache Method 

Populates an object with the given id, and saves it to the cache. In future instances, the cached version is used.

public static DBObject GetObjectFromCache(
   Cache cache,
   Int32 objectId
);

Parameters

Cache
The Cache to use
Int32
The ID of the object to populate

Return Value

A fully populated DBObject

Exceptions

Exception Type Condition
ObjectDoesNotExistException Thrown when the object does not exist in the database

See Also

ObjectUtils Class | Shunde.Utilities Namespace