Class Swift_Cache_Memory

Description

Caches data in variables - uses memory!

Located in /Swift/Cache/Memory.php (line 19)

Swift_Cache
   |
   --Swift_Cache_Memory
Method Summary
void clear (string $key)
boolean has (string $key)
string read (string $key, [ $size = null])
void write (string $key, string $data)
Methods
clear (line 46)

Clear the cached data (unset)

void clear (string $key)
  • string $key: The cache key

Redefinition of:
Swift_Cache::clear()
Clear out the buffer for $key
has (line 56)

Check if data is cached for $key

boolean has (string $key)
  • string $key: The cache key

Redefinition of:
Swift_Cache::has()
Check if there is something in the cache for $key
read (line 66)

Read data from the cache for $key

It makes no difference to memory/speed if data is read in chunks so arguments are ignored

string read (string $key, [ $size = null])
  • string $key: The cache key
  • $size

Redefinition of:
Swift_Cache::read()
Read bytes from the cached buffer and seek forward in the buffer
write (line 37)

Write data to the cache

void write (string $key, string $data)
  • string $key: The cache key
  • string $data: The data to write

Redefinition of:
Swift_Cache::write()
Append bytes to the cache buffer identified by $key

Inherited Methods

Inherited From Swift_Cache

Swift_Cache::clear()
Swift_Cache::getOutputStream()
Swift_Cache::has()
Swift_Cache::read()
Swift_Cache::write()

Documentation generated on Tue, 06 Mar 2007 23:32:25 +0000 by phpDocumentor 1.3.1