Class StorageCollection
-
ICanBoogie\Storage\CacheCollection
implements
ICanBoogie\Storage\Cache
-
┗
ICanBoogie\Storage\StorageCollection
implements
ICanBoogie\Storage\Storage,
ArrayAccess,
IteratorAggregate
uses
ICanBoogie\Storage\Storage\ArrayAccess
Namespace: ICanBoogie\
Storage
Package: ICanBoogie\Storage
Located at StorageCollection.php
Methods summary
public
__construct( array $collection
)
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
Overrides
Implementation of
public
store( string $key
, mixed $value
, string $ttl
= null )
Parameters
$key
Store the variable using this name. keys are cache-unique, so storing
a second value with the same key will overwrite the original value.
$value
- The value to store.
$ttl
Time To Live; store value
in the cache for ttl
seconds. After the
ttl
has passed, the stored value won't be available for the next request. If no ttl
is
supplied (or if the ttl
is empty), the value will persist until it is removed from the
cache manually, or otherwise fails to exist in the cache.
Inheritdoc
Implementation of
public
eliminate( string $key
)
Parameters
Inheritdoc
Implementation of
public
clear( void )
Inheritdoc
Implementation of
public
find_by_type( string $type
)
: ICanBoogie\Storage\Storage
|null
Parameters
$type
- The class or interface of the storage to find.
Returns
Inheritdoc
Overrides
exists()
,
getIterator()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
exists()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Properties summary