Net_DNS2
[ class tree: Net_DNS2 ] [ index: Net_DNS2 ] [ all elements ]

Class: Net_DNS2_Cache

Source Location: /Net_DNS2-1.3.2/Net/DNS2/Cache.php

Class Overview


A class to provide simple dns lookup caching.


Author(s):

Variables

Methods


Child classes:

Net_DNS2_Cache_File
File-based caching for the Net_DNS2_Cache class
Net_DNS2_Cache_Shm
Shared Memory-based caching for the Net_DNS2_Cache class

Inherited Variables

Inherited Methods


Class Details

[line 63]
A class to provide simple dns lookup caching.


[ Top ]


Class Variables

$cache_data = array()

[line 73]

  • Access: protected

Type:   mixed


[ Top ]

$cache_file =  ''

[line 68]

  • Access: protected

Type:   mixed


[ Top ]

$cache_serializer =

[line 83]

  • Access: protected

Type:   mixed


[ Top ]

$cache_size =  0

[line 78]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

clean   [line 201]

void clean( )

runs a clean up process on the cache data
  • Access: protected

[ Top ]

get   [line 108]

mixed get( string $key)

returns the value for the given key
  • Return: returns the cache data on sucess, false on error
  • Access: public

Parameters:

string   $key     the key to lookup in the local cache

[ Top ]

has   [line 94]

boolean has( string $key)

returns true/false if the provided key is defined in the cache
  • Access: public

Parameters:

string   $key     the key to lookup in the local cache

[ Top ]

put   [line 133]

void put( string $key, mixed $data)

adds a new key/value pair to the cache
  • Access: public

Parameters:

string   $key     the key for the new cache entry
mixed   $data     the data to store in cache

[ Top ]

resize   [line 234]

mixed resize( )

runs a clean up process on the cache data
  • Access: protected

[ Top ]


Documentation generated on Sun, 01 Dec 2013 01:30:08 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.