Property | Type | Description | |
---|---|---|---|
DefaultExpirationTime | System.TimeSpan |
Method | Description | |
---|---|---|
AddRegion ( |
New region is being added to server.
|
|
Cache ( OpenSim.Framework.AssetBase asset ) : void |
Cache asset.
|
|
Clear ( ) : void |
Clear asset cache.
|
|
Close ( ) : void |
Close region module.
|
|
Expire ( string id ) : void |
Expire (remove) asset stored to cache.
|
|
Get ( string id ) : OpenSim.Framework.AssetBase |
Get asset stored Caller should always check that is return value |
|
Initialise ( IConfigSource source ) : void |
Initialize region module.
|
|
PostInitialise ( ) : void |
Initialization post handling. Modules can use this to initialize connection with other modules. |
|
RegionLoaded ( |
Region has been loaded. This is needed for all module types. Modules will register Interfaces with scene in AddScene, and will also need a means to access interfaces registered by other modules. Without this extra method, a module attempting to use another modules' interface would be successful only depending on load order, which can't be depended upon, or modules would need to resort to ugly kludges to attempt to request interfaces when needed and unnecessary caching logic repeated in all modules. The extra function stub is just that much cleaner. |
|
RemoveRegion ( |
Region is being removed.
|
Method | Description | |
---|---|---|
Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void |
Initialize asset cache module, with custom parameters.
|
public AddRegion ( |
||
scene | /// Region's scene. /// | |
return | void |
public Cache ( OpenSim.Framework.AssetBase asset ) : void | ||
asset | OpenSim.Framework.AssetBase | /// The asset that is being cached. /// |
return | void |
public Expire ( string id ) : void | ||
id | string | /// The expired asset's id. /// |
return | void |
public Get ( string id ) : OpenSim.Framework.AssetBase | ||
id | string | /// The asset's id. /// |
return | OpenSim.Framework.AssetBase |
public Initialise ( IConfigSource source ) : void | ||
source | IConfigSource | /// Configuration source. /// |
return | void |
protected Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void | ||
maximalSize | long | /// Cache's maximal size in bytes. /// |
maximalCount | int | /// Cache's maximal count of assets. /// |
expirationTime | System.TimeSpan | /// Asset's expiration time. /// |
return | void |
public RegionLoaded ( |
||
scene | /// Region's scene. /// | |
return | void |
public RemoveRegion ( |
||
scene | /// Region scene that is being removed. /// | |
return | void |