PHP Class Infusionsoft_SmartCache, infusionsoft-php-sdk

显示文件 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_oe property

protected $dir

$name protected_oe property

protected $name

$staticExternalCacheClass protected_oe static_oe property

protected static $staticExternalCacheClass

$ttl protected_oe property

protected $ttl