PHP Class Infusionsoft_SmartCache, infusionsoft-php-sdk

Show file Open project: novaksolutions/infusionsoft-php-sdk Class Usage Examples

Protected Properties

Property Type Description
$dir
$name
$staticExternalCacheClass
$ttl

Public Methods

Method Description
__construct ( $name, $ttl = 300, $dir = 'cache' )
cacheData ( $data )
expireCache ( )
getCacheFileName ( )
getData ( )
getDataFromCache ( )
getDataFromCacheIfNotStale ( )
getDataFromSource ( )
isDataNotStale ( $data )
setExternalCacheClassName ( $className )

Method Details

__construct() public method

public __construct ( $name, $ttl = 300, $dir = 'cache' )

cacheData() public method

public cacheData ( $data )

expireCache() public method

public expireCache ( )

getCacheFileName() public method

public getCacheFileName ( )

getData() public method

public getData ( )

getDataFromCache() public method

public getDataFromCache ( )

getDataFromCacheIfNotStale() public method

getDataFromSource() public method

public getDataFromSource ( )

isDataNotStale() public method

public isDataNotStale ( $data )

setExternalCacheClassName() public static method

public static setExternalCacheClassName ( $className )

Property Details

$dir protected property

protected $dir

$name protected property

protected $name

$staticExternalCacheClass protected static property

protected static $staticExternalCacheClass

$ttl protected property

protected $ttl