TurckBagOStuff Class Reference
[Cache]

This is a wrapper for Turck MMCache's shared memory functions. More...

Inherits BagOStuff.

List of all members.

Public Member Functions

 get ($key)
 set ($key, $value, $exptime=0)
 delete ($key, $time=0)
 lock ($key, $waitTimeout=0)
 unlock ($key)


Detailed Description

This is a wrapper for Turck MMCache's shared memory functions.

You can store objects with mmcache_put() and mmcache_get(), but Turck seems to use a weird custom serializer that randomly segfaults. So we wrap calls with serialize()/unserialize().

The thing I noticed about the Turck serialized data was that unlike ordinary serialize(), it contained the names of methods, and judging by the amount of binary data, perhaps even the bytecode of the methods themselves. It may be that Turck's serializer is faster, so a possible future extension would be to use it for arrays but not for objects.

Definition at line 530 of file BagOStuff.php.


Member Function Documentation

TurckBagOStuff::delete ( key,
time = 0 
)

Reimplemented from BagOStuff.

Definition at line 544 of file BagOStuff.php.

References $key.

TurckBagOStuff::get ( key  ) 

Reimplemented from BagOStuff.

Definition at line 531 of file BagOStuff.php.

References $key.

TurckBagOStuff::lock ( key,
waitTimeout = 0 
)

Reimplemented from BagOStuff.

Definition at line 549 of file BagOStuff.php.

References $key.

TurckBagOStuff::set ( key,
value,
exptime = 0 
)

Reimplemented from BagOStuff.

Definition at line 539 of file BagOStuff.php.

References $key.

TurckBagOStuff::unlock ( key  ) 

Reimplemented from BagOStuff.

Definition at line 554 of file BagOStuff.php.

References $key.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:49 2009 for MediaWiki by  doxygen 1.5.9