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

Class: PMO_MyMemCache

Source Location: /fichiers/v0.15/PMO_core/PMO_MyMemCache.php

Class Overview


this class provides for memcaching PMO_Objects


Author(s):

Implements interfaces:

Variables

Methods



Class Details

[line 46]
this class provides for memcaching PMO_Objects



Tags:

todo:  make a tutorial to document this with usage and memcache installation


[ Top ]


Class Variables

static $INSTANCE =

[line 53]

holds the PMO_MyMemcache object



Tags:

access:  protected

Type:   object


[ Top ]

$memcache =

[line 59]

holds the Memcache object



Tags:

access:  protected

Type:   object


[ Top ]



Class Methods


method close [line 100]

void close( )

closes the connection to the memcache server



Tags:

access:  public



Implementation of:
PMO_MemCache::close()
closes the connection to the memcache server
[ Top ]

method connect [line 90]

bool connect( )

establishes a connection with the memcache server

parameters are taken from your PMO_MyConfig configuration




Tags:

return:  TRUE if the connection succeeded
access:  public



Implementation of:
PMO_MemCache::connect()
connects to the memcache server
[ Top ]

method delete [line 140]

void delete( PMO_Object $object)

deletes a PMO_Object from the cache



Tags:

access:  public



Implementation of:
PMO_MemCache::delete()
deletes an existing PMO_Object from the memcache server

Parameters:

object   $object   the PMO_Object to be deleted

[ Top ]

method factory [line 75]

object the factory( )

return the current instance of PMO_MyMemCache

the instance will be created on the first call to factory()




Tags:

return:  PMO_MuMecache instance
access:  public


[ Top ]

method flush [line 148]

void flush( )

invalidates all objects from the cache



Tags:

access:  public



Implementation of:
PMO_MemCache::flush()
[ Top ]

method get [line 110]

PMO_Object get( PMO_Object $object)

loads a PMO_Object from the cache



Tags:

access:  public



Implementation of:
PMO_MemCache::get()
retrieve a PMO_Object into the memcache

Parameters:

object   $object   the PMO_Object to load

[ Top ]

method replace [line 120]

void replace( PMO_Object $object)

replaces an existing PMO_Object into the cache



Tags:

access:  public



Implementation of:
PMO_MemCache::replace()
replaces an existing object in the memcache

Parameters:

object   $object   the PMO_Object to replace with

[ Top ]

method set [line 130]

void set( $key, PMO_Object $object)

inserts a new PMO_Object into the cache



Tags:

access:  public



Implementation of:
PMO_MemCache::set()
inserts a new PMO_Object into the memcache

Parameters:

object   $object   the PMO_Object to insert
   $key  

[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:17:21 -0400 by phpDocumentor 1.4.1