Memory caching and retrieval utility.
Syntax
Response = Memory_Services(@Service, @Params)
Returns
The meaning of the response value depends on the service.
Parameters
Parameter | Description |
---|---|
@Service | The name of the service being requested. Required. |
@Params | Generic parameters. Refer to a specific service to determine the actual parameters used. |
Remarks
This SRP FrameWorks utility service is designed to store small and large amounts of data in memory for quick retrieval. A very common use of Memory_Services
is to store the results of other services. Thus, the beginning of each service would first check to see if a value already exists before going through the expense of running the entire service logic again. If the data being stored in Memory_Services
needs to be refreshed after a short amount of time, the GetValue service can specify when this should expire.
Services
Service | Description |
---|---|
KeyExists | Usage: Comments: Returns: |
GetValue | Usage: Comments: Returns: |
SetValue | Usage: Comments: Returns: |
IsValueExpired | Usage: Comments: Returns: |
IsValueCurrent | Usage: Comments: Returns: |
RemoveKey | Usage: Comments: Returns: |
CreateHashTable | Usage: Comments: Returns: |
ReleaseHashTable | Usage: Comments: Returns: |
RemoveAllHashTables | Usage: Comments: Returns: |
GetHandle | Usage: Comments: Returns: |
Params
The proper use of the generic arguments are defined in the definition of each service above.