Class Swift_Cache_Memory

Description

Caches data in variables - uses memory!

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

Swift_Cache
   |
   --Swift_Cache_Memory
Variable Summary
string $requested
array $store
Method Summary
void clear (string $key)
boolean has (string $key)
string read (string $key, [ $size = null])
void write (string $key, string $data)
Variables
string $requested (line 30)

The key which was last requested

  • access: protected
array $store = array() (line 25)

The storage container for this cache

  • access: protected
Methods
clear (line 46)

Clear the cached data (unset)

  • access: public
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

  • access: public
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

  • access: public
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

  • access: public
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 Wed, 26 Mar 2008 20:33:08 +1100 by phpDocumentor 1.3.1