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

Interface Cache

An interface for classes implementing cache capabilities.

ICanBoogie\Storage\Cache implements IteratorAggregate

Direct known implementers

ICanBoogie\Storage\CacheCollection, ICanBoogie\Storage\Storage

Indirect known implementers

ICanBoogie\Storage\APCStorage, ICanBoogie\Storage\FileStorage, ICanBoogie\Storage\RedisStorage, ICanBoogie\Storage\RunTimeStorage, ICanBoogie\Storage\StorageCollection

Namespace: ICanBoogie\Storage
Located at Cache.php

Methods summary

public exists( $key ) : boolean

Checks if a key exists in a storage.

Checks if a key exists in a storage.

Parameters

$key

Returns

boolean
true if the key exists, false otherwise.
public retrieve( string $key ) : mixed|null

Retrieves a value.

Retrieves a value.

Parameters

$key
The key of the value.

Returns

mixed|null
The value associated with the key, or null if the key doesn't exists.
public getIterator( void ) : Iterator

Returns

Iterator

Inheritdoc

Implementation of

IteratorAggregate::getIterator()
Storage v2.0.1 – Check on GitHub – API documentation generated by ApiGen