ICanBoogie
  • Documentation
  • API Reference
  • Storage v1.1.1
Namespaces
  • ICanBoogie
    • Storage
Classes
  • APCStorage
  • CacheCollection
  • FileStorage
  • FileStorageIterator
  • RedisStorage
  • RunTimeStorage
  • StorageCollection
Interfaces
  • Cache
  • Storage
Traits
  • ArrayAccessTrait

Class RunTimeStorage

A storage that uses an array to store values.

ICanBoogie\Storage\RunTimeStorage implements ICanBoogie\Storage\Storage
Namespace: ICanBoogie\Storage
Package: ICanBoogie\Storage
Located at RunTimeStorage.php

Methods summary

public exists( string $key ) : boolean

Parameters

$key

Returns

boolean
true if the key exists, false otherwise.

Inheritdoc

Implementation of

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

Parameters

$key

Returns

mixed|null
The value associated with the key, or null if the key doesn't exists.

Inheritdoc

Implementation of

ICanBoogie\Storage\Storage::retrieve()
public store( string $key, mixed $value, string $ttl = null )

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.

Inheritdoc

Implementation of

ICanBoogie\Storage\Storage::store()
public eliminate( string $key )

Parameters

$key

Inheritdoc

Implementation of

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

Inheritdoc

Implementation of

ICanBoogie\Storage\Storage::clear()
Storage v1.1.1 – Check on GitHub – API documentation generated by ApiGen