ICanBoogie/Storage 2.1.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Storage
      • Codec
      • Storage

Classes

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

Interfaces

  • Cache
  • Codec
  • 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 boolean
# exists( $key )

Parameters

$key

Returns

boolean
true if the key exists, false otherwise.

Inheritdoc

Implementation of

ICanBoogie\Storage\Cache::exists()
public mixed|null
# retrieve( string $key )

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 Iterator
# getIterator( )

Returns

Iterator

Inheritdoc

Implementation of

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

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 ICanBoogie\Storage\Cache[] $collection
# []
ICanBoogie/Storage 2.1.x API documentation generated by ApiGen