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 APCStorage

A storage using APC.

ICanBoogie\Storage\APCStorage implements ICanBoogie\Storage\Storage, ArrayAccess uses ICanBoogie\Storage\Storage\ArrayAccess
Namespace: ICanBoogie\Storage
Located at APCStorage.php

Methods summary

public static boolean
# is_available( )

Whether the APC feature is available.

Whether the APC feature is available.

Returns

boolean

Codecoverageignore

public
# __construct( string|null $prefix = null )

Parameters

$prefix
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
# store( string $key, mixed $data, string $ttl = 0 )

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.

$data
$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
# eliminate( string $key )

Parameters

$key

Inheritdoc

Implementation of

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

Inheritdoc

Implementation of

ICanBoogie\Storage\Storage::clear()
public Iterator
# getIterator( )

Returns

Iterator

Inheritdoc

Implementation of

ICanBoogie\Storage\Cache::getIterator()

Methods inherited from ArrayAccess

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

Methods used from ICanBoogie\Storage\Storage\ArrayAccess

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

ICanBoogie/Storage 2.1.x API documentation generated by ApiGen