Class CacheCollection
-
ICanBoogie\Storage\CacheCollection
implements
ICanBoogie\Storage\Cache
Namespace: ICanBoogie\
Storage
Package: ICanBoogie\Storage
Located at CacheCollection.php
Methods summary
public
__construct( array $collection
)
public
exists( $key
)
: boolean
Parameters
Returns
boolean
true
if the key exists, false
otherwise.
Inheritdoc
Implementation of
public
retrieve( string $key
)
: mixed|null
Parameters
$key
- The key of the value.
Returns
mixed|null
The value associated with the key, or null
if the key doesn't exists.
Inheritdoc
Implementation of
public
getIterator( void )
: Iterator
Returns
Iterator
Inheritdoc
Implementation of
public
find_by_type( string $type
)
: ICanBoogie\Storage\Cache
|null
Finds a cache by type.
Parameters
$type
- The class or interface of the storage to find.
Returns
Properties summary