PHP Interface Pop\Cache\Adapter\AdapterInterface

Author: Nick Sagona, III ([email protected])
Mostrar archivo Open project: nicksagona/PopPHP Interface Usage Examples

Public Methods

Method Description
clear ( ) : void Method to clear all stored values from cache.
load ( string $id, string $time ) : mixed Method to load a value from cache.
remove ( string $id ) : void Method to delete a value in cache.
save ( string $id, mixed $value, string $time ) : void Method to save a value to cache.

Method Details

clear() public method

Method to clear all stored values from cache.
public clear ( ) : void
return void

load() public method

Method to load a value from cache.
public load ( string $id, string $time ) : mixed
$id string
$time string
return mixed

remove() public method

Method to delete a value in cache.
public remove ( string $id ) : void
$id string
return void

save() public method

Method to save a value to cache.
public save ( string $id, mixed $value, string $time ) : void
$id string
$value mixed
$time string
return void