Home Reference Source
public class | source

CacheProvider

Extends:

AbstractService → CacheProvider

Cache provider class.

This class stores Ajax response in memory.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

data: {}

Method Summary

Public Methods
public
public

get(href: String): Object

public

reset()

Flush the cache

public

set(key: String, data: Object): CacheProvider

Inherited Summary

From class AbstractService
public
public
public

checkDependencies(dependencies: *[])

public

getService(serviceName: *): *

public

hasService(serviceName: *): *

public

init()

Public Constructors

public constructor() source

Override:

AbstractService#constructor

Public Members

public data: {} source

Public Methods

public exists(key: String): Boolean source

Params:

NameTypeAttributeDescription
key String

Return:

Boolean

public get(href: String): Object source

Params:

NameTypeAttributeDescription
href String

Return:

Object

public reset() source

Flush the cache

public set(key: String, data: Object): CacheProvider source

Params:

NameTypeAttributeDescription
key String
data Object

Return:

CacheProvider

this