OpenMetaverse Protocol Library Developers API Documentation
AssetCache Class
NamespacesOpenMetaverseAssetCache
Class that handles the local asset cache
Declaration Syntax
C#
public 
class 
AssetCache
Members
All Members Constructors Methods Properties Fields



Icon Member Description
AssetCache(GridClient)
Default constructor

AssetFileName(UUID)
Get the file name of the asset stored with gived UUID

AutoPruneEnabled
Allows setting weather to periodicale prune the cache if it grows too big Default is enabled, when caching is enabled

AutoPruneInterval
How long (in ms) between cache checks (default is 5 min.)

BeginPrune () () () ()
Asynchronously brings cache size to the 90% of the max size

Clear () () () ()
Wipes out entire cache

ComputeAssetCacheFilename
GetCachedAssetBytes(UUID)
Return bytes read from the local asset cache, null if it does not exist

GetCachedImage(UUID)
Returns ImageDownload object of the image from the local image cache, null if it does not exist

HasAsset(UUID)
Checks if the asset exists in the local cache

Prune () () () ()
Brings cache size to the 90% of the max size

SaveAssetToCache(UUID, array< Byte > [] () [] [] )
Saves an asset to the local cache

Inheritance Hierarchy
Object
AssetCache

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)