summaryrefslogtreecommitdiff
path: root/includes/BagOStuff.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-06-29 16:51:00 +0200
committerPierre Schmitz <pierre@archlinux.de>2007-06-29 16:51:00 +0200
commit928928ba676d1d8498130bd68bc5116574d3636e (patch)
tree31e236c217288f1d0338ef6e254a49904dac407e /includes/BagOStuff.php
parent88830b887ca5ab2a10256d52bcc84bc866047dee (diff)
APC-Interface angepasst
Diffstat (limited to 'includes/BagOStuff.php')
-rw-r--r--includes/BagOStuff.php23
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 ) {