ICanBoogie
  • Documentation
  • API Reference
  • Storage v2.0.1
Namespaces
  • ICanBoogie
    • Storage
      • Storage
Classes
  • APCStorage
  • CacheCollection
  • FileStorage
  • FileStorageIterator
  • RedisStorage
  • RunTimeStorage
  • StorageCollection
Interfaces
  • Cache
  • Storage

Class CacheCollection

A collection of ICanBoogie\Storage\Cache instances.

ICanBoogie\Storage\CacheCollection implements ICanBoogie\Storage\Cache

Direct known subclasses

ICanBoogie\Storage\StorageCollection

Namespace: ICanBoogie\Storage
Package: ICanBoogie\Storage
Located at CacheCollection.php

Methods summary

public __construct( array $collection )
public exists( $key ) : boolean

Parameters

$key

Returns

boolean
true if the key exists, false otherwise.

Inheritdoc

Implementation of

ICanBoogie\Storage\Cache::exists()
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

ICanBoogie\Storage\Cache::retrieve()
public getIterator( void ) : Iterator

Returns

Iterator

Inheritdoc

Implementation of

ICanBoogie\Storage\Cache::getIterator()
public find_by_type( string $type ) : ICanBoogie\Storage\Cache|null

Finds a cache by type.

Finds a cache by type.

Parameters

$type
The class or interface of the storage to find.

Returns

ICanBoogie\Storage\Cache|null
The cache matching the specified type or null if none match.

Properties summary

protected $collection : ICanBoogie\Storage\Cache[]
[]
Storage v2.0.1 – Check on GitHub – API documentation generated by ApiGen