public static
mixed|null
|
#
pull( array|null $config = null, string $clientId = null )
A pull method which would read the persisted data based on clientId.
If clientId is not provided, an array with all the tokens would be passed.
A pull method which would read the persisted data based on clientId.
If clientId is not provided, an array with all the tokens would be passed.
Parameters
Returns
mixed|null
|
public static
|
#
push( array|null $config, $clientId, $accessToken, $tokenCreateTime, $tokenExpiresIn )
Persists the data into a cache file provided in $CACHE_PATH
Persists the data into a cache file provided in $CACHE_PATH
Parameters
- $config
- $clientId
- $accessToken
- $tokenCreateTime
- $tokenExpiresIn
Throws
Exception
|
public static
boolean
|
#
isEnabled( $config )
Determines from the Configuration if caching is currently enabled/disabled
Determines from the Configuration if caching is currently enabled/disabled
Parameters
Returns
boolean
|
public static
string
|
#
cachePath( $config )
Returns the cache file path
Returns the cache file path
Parameters
Returns
string
|