Inherits BagOStuff.
Public Member Functions | |
get ($key) | |
set ($key, $value, $exptime=0) | |
delete ($key, $time=0) | |
lock ($key, $waitTimeout=0) | |
unlock ($key) |
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.
TurckBagOStuff::delete | ( | $ | key, | |
$ | time = 0 | |||
) |
TurckBagOStuff::get | ( | $ | key | ) |
TurckBagOStuff::lock | ( | $ | key, | |
$ | waitTimeout = 0 | |||
) |
TurckBagOStuff::set | ( | $ | key, | |
$ | value, | |||
$ | exptime = 0 | |||
) |
TurckBagOStuff::unlock | ( | $ | key | ) |