ICanBoogie/Storage 1.2.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Storage

Classes

  • APCStorage
  • CacheCollection
  • FileStorage
  • FileStorageIterator
  • RedisStorage
  • RunTimeStorage
  • StorageCollection

Interfaces

  • Cache
  • Storage

Traits

  • ArrayAccessTrait

Class StorageCollection

A collection of ICanBoogie\Storage\Storage instances.

ICanBoogie\Storage\CacheCollection implements ICanBoogie\Storage\Cache
Extended by ICanBoogie\Storage\StorageCollection implements ICanBoogie\Storage\Storage, ArrayAccess uses ICanBoogie\Storage\ArrayAccessTrait
Namespace: ICanBoogie\Storage
Package: ICanBoogie\Storage
Located at StorageCollection.php

Methods summary

public
# __construct( array $collection )

Overrides

ICanBoogie\Storage\CacheCollection::__construct
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

ICanBoogie\Storage\Storage::store()
public mixed
# retrieve( string $key )

Parameters

$key
The key of the value.

Returns

mixed

Inheritdoc

Overrides

ICanBoogie\Storage\CacheCollection::retrieve

Implementation of

ICanBoogie\Storage\Storage::retrieve()
public
# eliminate( string $key )

Parameters

$key

Inheritdoc

Implementation of

ICanBoogie\Storage\Storage::eliminate()
public
# clear( )

Inheritdoc

Implementation of

ICanBoogie\Storage\Storage::clear()

Methods inherited from ICanBoogie\Storage\CacheCollection

exists()

Methods inherited from ArrayAccess

offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Methods used from ICanBoogie\Storage\ArrayAccessTrait

exists(), offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Properties summary

protected ICanBoogie\Storage\Storage[] $collection
# []
ICanBoogie/Storage 1.2.x API documentation generated by ApiGen