POT
POT
POT
Main menu

Download

Forum

SVN

Interface: IOTS_FileCache

Source Location: /classes/IOTS_FileCache.php

Interface IOTS_FileCache

Interface Overview

This interface describes binary files cache control drivers.

This interface describes binary files cache control drivers.

Located in /classes/IOTS_FileCache.php [line 23]



		
				Author(s):
		
API Tags:
Example:  cache.php

Information Tags:
Tutorial:  Cache drivers
Version:  0.0.6
Since:  0.0.6

Methods

[ Top ]
Descendants
Child Class Description
IOTS_ItemsCache This interface defines items.

[ Top ]
Method Summary
OTS_FileNode|null   readCache()   Returns cache.
void   writeCache()   Writes node cache.

[ Top ]
Methods
readCache  [line 31]

  OTS_FileNode|null readCache( string $md5  )

Returns cache.

Returns cache.

Parameters:
string   $md5:  MD5 hash of file.

API Tags:
Return:  Root node (null if file cache is not valid).
Access:  public

Information Tags:
Version:  0.0.6
Since:  0.0.6

[ Top ]
writeCache  [line 38]

  void writeCache( string $md5, OTS_FileNode $root  )

Writes node cache.

Writes node cache.

Parameters:
string   $md5:  MD5 checksum of current file.
OTS_FileNode   $root:  Root node of file which should be cached.

API Tags:
Access:  public

Information Tags:
Version:  0.0.6
Since:  0.0.6

[ Top ]