Class StdBSCache
Serviços de Cache.
Inheritance
Implements
Inherited Members
Namespace: StdPlatBS100
Assembly: StdPlatBS100.dll
Syntax
[ComVisible(true)]
[Guid("6BBC91FC-2B5C-4FA4-B8E0-AD7FD0ED9617")]
[ClassInterface(ClassInterfaceType.None)]
public class StdBSCache : IStdBSCache
Constructors
StdBSCache()
Declaration
public StdBSCache()
Methods
AddDynamicObject(String, String, Object)
Adiciona Objecto na Cache Dinamica
Declaration
public bool AddDynamicObject(string strCacheKey, string strObjectKey, object objValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strObjectKey | chave do objecto. |
System.Object | objValue | valor. |
Returns
Type | Description |
---|---|
System.Boolean |
AddDynamicValue(String, String, Object)
Adiciona valor na Cache Dinamica
Declaration
public bool AddDynamicValue(string strCacheKey, string strValueKey, object objValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strValueKey | chave do valor. |
System.Object | objValue | valor. |
Returns
Type | Description |
---|---|
System.Boolean |
AddStaticObject(String, String, Object)
Adiciona Objecto na Cache Estatica
Declaration
public bool AddStaticObject(string strCacheKey, string strObjectKey, object objValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strObjectKey | chave do objecto. |
System.Object | objValue | valor. |
Returns
Type | Description |
---|---|
System.Boolean |
AddStaticValue(String, String, Object)
Adiciona valor na Cache Estatica
Declaration
public bool AddStaticValue(string strCacheKey, string strValueKey, object objValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strValueKey | chave do valor. |
System.Object | objValue | valor. |
Returns
Type | Description |
---|---|
System.Boolean |
BuildKey(Object[])
Controi a chave para um elemento da Cache
Declaration
public string BuildKey(params object[] params_Renamed)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | params_Renamed |
Returns
Type | Description |
---|---|
System.String |
Clear(String)
Get Limpa Cache
Declaration
public void Clear(string strKey = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
ClearDynamic(String)
Get Limpa Cache Dinamica
Declaration
public void ClearDynamic(string strKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
ClearStatic(String)
Get Limpa Static Cache
Declaration
public void ClearStatic(string strKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
Config(Int32, Int32, Int32, Int32, Boolean, String)
Configurar uma Cache
Declaration
public bool Config(int expirationTimeInSeconds, int expirationFrequencyInSeconds, int MaximumElementsBeforeScavenging, int numberToRemoveWhenScavenging, bool traceEnabled, string strKey = "")
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | expirationTimeInSeconds | Tempo para expirar em segundos |
System.Int32 | expirationFrequencyInSeconds | Frequência para expirar em segundos |
System.Int32 | MaximumElementsBeforeScavenging | Máximo de elementos antes de limpar |
System.Int32 | numberToRemoveWhenScavenging | |
System.Boolean | traceEnabled | Trace activo |
System.String | strKey | Chave |
Returns
Type | Description |
---|---|
System.Boolean |
Create(String)
Cria uma cache nova.
Declaration
public object Create(string strKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
Returns
Type | Description |
---|---|
System.Object |
Destroy(String)
Destroi uma cache.
Declaration
public void Destroy(string strKey = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
Dump(String)
Grava a informação presente na cache para um ficheiro na pasta TEMP do windows.
Declaration
public object Dump(string strKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
Returns
Type | Description |
---|---|
System.Object |
GetDynamic(String)
Get Dynamic Cache
Declaration
public IDynamicCacheManager GetDynamic(string strKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
Returns
Type | Description |
---|---|
StdCaching.IDynamicCacheManager |
GetDynamicObject(String, String)
Get Objecto da Cache Dinamica
Declaration
public object GetDynamicObject(string strCacheKey, string strObjectKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strObjectKey | chave do objecto. |
Returns
Type | Description |
---|---|
System.Object |
GetDynamicValue(String, String)
Get Objecto da Cache Dinamica
Declaration
public object GetDynamicValue(string strCacheKey, string strValueKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strValueKey | ch ave do valor. |
Returns
Type | Description |
---|---|
System.Object |
GetStatic(String)
Get Static Cache
Declaration
public IStaticCacheManager GetStatic(string strKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strKey | chave da cache. |
Returns
Type | Description |
---|---|
StdCaching.IStaticCacheManager |
GetStaticObject(String, String)
Get Objecto da Cache Estatica
Declaration
public object GetStaticObject(string strCacheKey, string strObjectKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strObjectKey | chave do objecto. |
Returns
Type | Description |
---|---|
System.Object |
GetStaticValue(String, String)
Get Objecto da Cache Estatica
Declaration
public object GetStaticValue(string strCacheKey, string strValueKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCacheKey | chave da cache. |
System.String | strValueKey | chave do valor. |
Returns
Type | Description |
---|---|
System.Object |