Class FTCache_Container

(line 274)

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.


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.

Class Variables

Summary:
int $_size

$_size = 0 (line 280)

Data type : int

Size of the schema
  • access: - protected

Class Constants

Summary:

Method Detail

Summary:
FTCache_Container __construct (int $size)
string get (int $index)
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

  • access - public

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

  • int $index: Cache index

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

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Sat, 01 Mar 2008 03:16:45 +0000 by phpDocumentor 1.4.0