C# Class OpenSim.Region.CoreModules.Asset.CenomeMemoryAssetCache

Inheritance: IImprovedAssetCache, ISharedRegionModule
Afficher le fichier Open project: openmetaversefoundation/fortis-opensim

Méthodes publiques

Свойство Type Description
DefaultExpirationTime System.TimeSpan

Méthodes publiques

Méthode Description
AddRegion ( Scene scene ) : void

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 . Cache doesn't guarantee in any situation that asset is stored to it.

Initialise ( IConfigSource source ) : void

Initialize region module.

PostInitialise ( ) : void

Initialization post handling.

Modules can use this to initialize connection with other modules.

RegionLoaded ( Scene scene ) : void

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 ( Scene scene ) : void

Region is being removed.

Méthodes protégées

Méthode Description
Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void

Initialize asset cache module, with custom parameters.

Method Details

AddRegion() public méthode

New region is being added to server.
public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene /// Region's scene. ///
Résultat void

Cache() public méthode

Cache asset.
public Cache ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase /// The asset that is being cached. ///
Résultat void

Clear() public méthode

Clear asset cache.
public Clear ( ) : void
Résultat void

Close() public méthode

Close region module.
public Close ( ) : void
Résultat void

Expire() public méthode

Expire (remove) asset stored to cache.
public Expire ( string id ) : void
id string /// The expired asset's id. ///
Résultat void

Get() public méthode

Get asset stored

Caller should always check that is return value . Cache doesn't guarantee in any situation that asset is stored to it.

public Get ( string id ) : OpenSim.Framework.AssetBase
id string /// The asset's id. ///
Résultat OpenSim.Framework.AssetBase

Initialise() public méthode

Initialize region module.
public Initialise ( IConfigSource source ) : void
source IConfigSource /// Configuration source. ///
Résultat void

Initialize() protected méthode

Initialize asset cache module, with custom parameters.
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. ///
Résultat void

PostInitialise() public méthode

Initialization post handling.

Modules can use this to initialize connection with other modules.

public PostInitialise ( ) : void
Résultat void

RegionLoaded() public méthode

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.

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene /// Region's scene. ///
Résultat void

RemoveRegion() public méthode

Region is being removed.
public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene /// Region scene that is being removed. ///
Résultat void

Property Details

DefaultExpirationTime public_oe static_oe property

Asset's default expiration time in the cache.
public static TimeSpan,System DefaultExpirationTime
Résultat System.TimeSpan