PHP Interface Sulu\Component\Cache\CacheInterface

Exibir arquivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
invalidate ( ) Invalidate cache.
isFresh ( ) : boolean Checks if the cache is still fresh.
read ( ) : Serializable Read content of cache.
write ( Serializable | Serializable[] $data ) Write data into cache.

Method Details

invalidate() public method

Invalidate cache.
public invalidate ( )

isFresh() public method

This method always returns true when the cache file exists.
public isFresh ( ) : boolean
return boolean true if the cache is fresh, false otherwise

read() public method

Read content of cache.
public read ( ) : Serializable
return Serializable

write() public method

Write data into cache.
public write ( Serializable | Serializable[] $data )
$data Serializable | Serializable[]