ICanBoogie/Storage 2.1.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Storage
      • Codec
      • Storage

Classes

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

Interfaces

  • Cache
  • Codec
  • Storage

Interface Storage

An interface for classes implementing storage capabilities.

ICanBoogie\Storage\Storage implements ICanBoogie\Storage\Cache

Direct known implementers

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

Namespace: ICanBoogie\Storage
Located at Storage.php

Methods summary

public
# store( string $key, mixed $value, string $ttl = null )

Stores a variable.

Stores a variable.

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.

public
# eliminate( string $key )

Removes a value and its key.

Removes a value and its key.

Parameters

$key
public
# clear( )

Clears the cache.

Clears the cache.

Methods inherited from ICanBoogie\Storage\Cache

exists(), getIterator(), retrieve()

ICanBoogie/Storage 2.1.x API documentation generated by ApiGen