diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-06-29 16:51:00 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-06-29 16:51:00 +0200 |
commit | 928928ba676d1d8498130bd68bc5116574d3636e (patch) | |
tree | 31e236c217288f1d0338ef6e254a49904dac407e /includes | |
parent | 88830b887ca5ab2a10256d52bcc84bc866047dee (diff) |
APC-Interface angepasst
Diffstat (limited to 'includes')
-rw-r--r-- | includes/BagOStuff.php | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/includes/BagOStuff.php b/includes/BagOStuff.php index 6c638af0..7fed9274 100644 --- a/includes/BagOStuff.php +++ b/includes/BagOStuff.php @@ -495,28 +495,27 @@ class TurckBagOStuff extends BagOStuff { * */ class APCBagOStuff extends BagOStuff { - function get($key) { - $val = apc_fetch($key); - if ( is_string( $val ) ) { - $val = unserialize( $val ); - } - return $val; + public function get( $key ) { + return apc_fetch($key); } - function set($key, $value, $exptime=0) { - apc_store($key, serialize($value), $exptime); - return true; + public function set( $key, $value, $exptime = 0 ) { + return apc_store($key, $value, $exptime); } - function delete($key, $time=0) { - apc_delete($key); - return true; + public function delete( $key, $time = 0 ) { + return apc_delete( $key ); } + +// function add($key, $value, $exptime=0) { +// return apc_add( $key, $value, $exptime ); +// } } /** * Wrapper for XCache object caching functions + * */ class XCacheBagOStuff extends BagOStuff { public function get( $key ) { |