Description
Located in File: /FTCache.php
This describes the way the functions that we will need to implement to store the given data into the cache.
- author: - Justin DeMaris
- abstract: -
Classes extended from FTCache_Container:
- FTCache_Container_CSV
- Implements a cache stored in an index flat file (csv format)
- FTCache_Container_Volatile
- Implements a volatile cache that only exists for this runtime of the program.
Method Detail
Summary:
void
set
(
int $index,
string $data)
Constructor __construct (line 287)
FTCache_Container __construct(
int
$size)
Overridden in child classes as:
- FTCache_Container_CSV::__construct()
- Instantiate, set the size, and open the file for editting
Sets the size of the cache
Parameters
- int $size: Number of entries to store in the container at once
Info
Method get (line 302)
string get(
int
$index)
Overridden in child classes as:
- FTCache_Container_CSV::get()
- Retrieve the string of stored data at the given cache index
- FTCache_Container_Volatile::get()
- Retrieve the string of stored data at the given cache index
Retrieve the string of stored data at the given cache index
Parameters
Info
- return - Data stored there. False if no data stored there.
- abstract -
- access - public
Method set (line 310)
void set(
int
$index, string
$data)
Overridden in child classes as:
- FTCache_Container_CSV::set()
- Sets the cache entry with the given index to contain the given data
- FTCache_Container_Volatile::set()
- Sets the cache entry with the given index to contain the given data
Sets the cache entry with the given index to contain the given data
Parameters
- int $index: Cache index
- string $data: Data to store there
Info
- abstract -
- access - public