Property | Type | Description | |
---|---|---|---|
DefaultExpirationTime | System.TimeSpan |
Method | Description | |
---|---|---|
Cache ( string assetID, |
Cache asset.
|
|
CacheData ( string assetID, byte asset ) : void | ||
Clear ( ) : void |
Clear asset cache.
|
|
Contains ( string id ) : bool | ||
Expire ( string id ) : void |
Expire (remove) asset stored to cache.
|
|
FinishedStartup ( ) : void | ||
Get ( string id ) : |
Get asset stored Caller should always check that is return value |
|
Get ( string id, bool &found ) : |
||
GetData ( string id, bool &found ) : byte[] | ||
Initialize ( IConfigSource config, IRegistryCore registry ) : void | ||
Start ( IConfigSource config, IRegistryCore registry ) : void |
Method | Description | |
---|---|---|
Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void |
Initialize asset cache module, with custom parameters.
|
public Cache ( string assetID, |
||
assetID | string | |
asset | /// The asset that is being cached. /// | |
return | void |
public CacheData ( string assetID, byte asset ) : void | ||
assetID | string | |
asset | byte | |
return | void |
public Expire ( string id ) : void | ||
id | string | /// The expired asset's id. /// |
return | void |
public Get ( string id ) : |
||
id | string | /// The asset's id. /// |
return |
public Get ( string id, bool &found ) : |
||
id | string | |
found | bool | |
return |
public GetData ( string id, bool &found ) : byte[] | ||
id | string | |
found | bool | |
return | byte[] |
public Initialize ( IConfigSource config, IRegistryCore registry ) : void | ||
config | IConfigSource | |
registry | IRegistryCore | |
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 Start ( IConfigSource config, IRegistryCore registry ) : void | ||
config | IConfigSource | |
registry | IRegistryCore | |
return | void |