Свойство | Тип | Описание | |
---|---|---|---|
DefaultExpirationTime | System.TimeSpan |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void |
Initialize asset cache module, with custom parameters.
|
public AddRegion ( |
||
scene | /// Region's scene. /// | |
Результат | void |
public Cache ( OpenSim.Framework.AssetBase asset ) : void | ||
asset | OpenSim.Framework.AssetBase | /// The asset that is being cached. /// |
Результат | void |
public Expire ( string id ) : void | ||
id | string | /// The expired asset's id. /// |
Результат | void |
public Get ( string id ) : OpenSim.Framework.AssetBase | ||
id | string | /// The asset's id. /// |
Результат | OpenSim.Framework.AssetBase |
public Initialise ( IConfigSource source ) : void | ||
source | IConfigSource | /// Configuration source. /// |
Результат | 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. /// |
Результат | void |
public RegionLoaded ( |
||
scene | /// Region's scene. /// | |
Результат | void |
public RemoveRegion ( |
||
scene | /// Region scene that is being removed. /// | |
Результат | void |