initial import

This commit is contained in:
Alchemy
2011-02-16 16:09:48 +01:00
parent 399a584b6f
commit 339d23c06d
5539 changed files with 2028637 additions and 1 deletions

49
lib/classes/cache/user.class.php vendored Normal file
View File

@@ -0,0 +1,49 @@
<?php
class cache_user
{
private static $_instance = false;
var $_c_obj = false;
function __construct()
{
$this->_c_obj = cache::getInstance();
}
/**
* @return cache_user
*/
public static function getInstance()
{
if (!(self::$_instance instanceof self))
self::$_instance = new self();
return self::$_instance;
}
public function get($id)
{
return $this->_c_obj->get(GV_ServerName.'_user_'.$id);
}
public function set($id,$value)
{
return $this->_c_obj->set(GV_ServerName.'_user_'.$id,$value);
}
public function delete($id)
{
$cache_basket = cache_basket::getInstance();
$cache_basket->revoke_baskets_usr($id);
return $this->_c_obj->delete(GV_ServerName.'_user_'.$id);
}
}