C# Class API.DataAccess.CacheManager

Show file Open project: RikkiGibson/Corvallis-Bus-Server Class Usage Examples

Private Properties

Property Type Description
SetPlatformTags void
SetSchedule void
SetStaticData void

Public Methods

Method Description
CacheManager ( AppSettings appSettings ) : API.Models
GetPlatformTagsAsync ( ) : Task

Gets the platform tag dictionary from the cache. May return an empty string if the cache expires.

GetScheduleAsync ( ) : Task

Gets schedule data from the cache. May return an empty string if the cache expires.

GetStaticDataAsync ( ) : Task

Gets static data from the cache. May return an empty string if the cache expires.

Private Methods

Method Description
SetPlatformTags ( string platformTagsJson ) : void
SetSchedule ( string scheduleJson ) : void
SetStaticData ( string staticDataJson ) : void

Method Details

CacheManager() public method

public CacheManager ( AppSettings appSettings ) : API.Models
appSettings AppSettings
return API.Models

GetPlatformTagsAsync() public method

Gets the platform tag dictionary from the cache. May return an empty string if the cache expires.
public GetPlatformTagsAsync ( ) : Task
return Task

GetScheduleAsync() public method

Gets schedule data from the cache. May return an empty string if the cache expires.
public GetScheduleAsync ( ) : Task
return Task

GetStaticDataAsync() public method

Gets static data from the cache. May return an empty string if the cache expires.
public GetStaticDataAsync ( ) : Task
return Task