ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilStaticCache Class Reference

Class ilStaticCache. More...

+ Inheritance diagram for ilStaticCache:
+ Collaboration diagram for ilStaticCache:

Public Member Functions

 exists ($key)
 set ($key, $serialized_value, $ttl=NULL)
 get ($key)
 delete ($key)
 flush ()
 serialize ($value)
 unserialize ($serialized_value)
- Public Member Functions inherited from ilGlobalCacheService
 __construct ($service_id, $component)
 __destruct ()
 getServiceId ()
 setServiceId ($service_id)
 setValid ($key)
 getComponent ()
 setComponent ($component)
 setInvalid ($key=NULL)
 isValid ($key)
 isActive ()
 isInstallable ()
 returnKey ($key)
 getInfo ()
 getInstallationFailureReason ()
 setServiceType ($service_type)
 getServiceType ()

Protected Member Functions

 getActive ()
 getInstallable ()
- Protected Member Functions inherited from ilGlobalCacheService
 saveValid ()
 readValid ()
 getMemoryLimit ()
 getMinMemory ()
 checkMemory ()

Static Protected Attributes

static $cache = array()
- Static Protected Attributes inherited from ilGlobalCacheService
static $active = array()
static $installable = array()

Additional Inherited Members

- Protected Attributes inherited from ilGlobalCacheService
 $current_time = 0
 $valid_keys = array()
 $service_id = ''
 $component = ''
 $service_type = ilGlobalCache::TYPE_STATIC
 $valid_key_hash = ''

Detailed Description

Class ilStaticCache.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0.0

Definition at line 13 of file class.ilStaticCache.php.

Member Function Documentation

ilStaticCache::delete (   $key)
Parameters
$key
Returns
bool

Reimplemented from ilGlobalCacheService.

Definition at line 74 of file class.ilStaticCache.php.

References ilGlobalCacheService\getComponent().

{
unset(self::$cache[$this->getComponent()][$key]);
}

+ Here is the call graph for this function:

ilStaticCache::exists (   $key)
Parameters
$key
Returns
bool

Reimplemented from ilGlobalCacheService.

Definition at line 42 of file class.ilStaticCache.php.

References ilGlobalCacheService\getComponent().

{
return isset(self::$cache[$this->getComponent()][$key]);
}

+ Here is the call graph for this function:

ilStaticCache::flush ( )
Returns
bool

Reimplemented from ilGlobalCacheService.

Definition at line 82 of file class.ilStaticCache.php.

{
self::$cache = array();
return true;
}
ilStaticCache::get (   $key)
Parameters
$key
Returns
mixed

Reimplemented from ilGlobalCacheService.

Definition at line 64 of file class.ilStaticCache.php.

References ilGlobalCacheService\getComponent().

{
return self::$cache[$this->getComponent()][$key];
}

+ Here is the call graph for this function:

ilStaticCache::getActive ( )
protected
Returns
bool

Reimplemented from ilGlobalCacheService.

Definition at line 18 of file class.ilStaticCache.php.

{
return true;
}
ilStaticCache::getInstallable ( )
protected
Returns
bool

Reimplemented from ilGlobalCacheService.

Definition at line 26 of file class.ilStaticCache.php.

{
return true;
}
ilStaticCache::serialize (   $value)
Parameters
$value
Returns
mixed

Reimplemented from ilGlobalCacheService.

Definition at line 94 of file class.ilStaticCache.php.

{
return ($value);
}
ilStaticCache::set (   $key,
  $serialized_value,
  $ttl = NULL 
)
Parameters
$key
$serialized_value
null$ttl
Returns
bool

Reimplemented from ilGlobalCacheService.

Definition at line 54 of file class.ilStaticCache.php.

References ilGlobalCacheService\getComponent().

{
return self::$cache[$this->getComponent()][$key] = $serialized_value;
}

+ Here is the call graph for this function:

ilStaticCache::unserialize (   $serialized_value)
Parameters
$serialized_value
Returns
mixed

Reimplemented from ilGlobalCacheService.

Definition at line 104 of file class.ilStaticCache.php.

{
return ($serialized_value);
}

Field Documentation

ilStaticCache::$cache = array()
staticprotected

Definition at line 34 of file class.ilStaticCache.php.


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